From f559a70cd9167a520f885c3cac8ecd2d244f9880 Mon Sep 17 00:00:00 2001 From: Puqns67 Date: Wed, 13 Mar 2024 02:46:02 +0800 Subject: [PATCH] osu-lazer-bin/2024.312.1-2: new package --- packages/osu-lazer-bin/.SRCINFO | 28 ++++++++++++ packages/osu-lazer-bin/.gitignore | 1 + packages/osu-lazer-bin/PKGBUILD | 55 ++++++++++++++++++++++++ packages/osu-lazer-bin/osu-lazer.bash | 2 + packages/osu-lazer-bin/osu-lazer.desktop | 11 +++++ packages/osu-lazer-bin/osu-lazer.xml | 17 ++++++++ 6 files changed, 114 insertions(+) create mode 100644 packages/osu-lazer-bin/.SRCINFO create mode 100644 packages/osu-lazer-bin/.gitignore create mode 100644 packages/osu-lazer-bin/PKGBUILD create mode 100644 packages/osu-lazer-bin/osu-lazer.bash create mode 100644 packages/osu-lazer-bin/osu-lazer.desktop create mode 100644 packages/osu-lazer-bin/osu-lazer.xml diff --git a/packages/osu-lazer-bin/.SRCINFO b/packages/osu-lazer-bin/.SRCINFO new file mode 100644 index 0000000..56143d5 --- /dev/null +++ b/packages/osu-lazer-bin/.SRCINFO @@ -0,0 +1,28 @@ +pkgbase = osu-lazer-bin + pkgdesc = The future of osu! and the beginning of an open era! Commonly known by the codename osu!lazer. Pew pew. + pkgver = 2024.312.1 + pkgrel = 2 + url = https://osu.ppy.sh/ + arch = x86_64 + license = MIT + license = CC-BY-NC-4.0 + depends = bash + depends = ffmpeg4.4 + depends = gcc-libs + depends = glibc + depends = lttng-ust2.12 + depends = zlib + provides = osu-lazer + conflicts = osu-lazer + source = osu-lazer-2024.312.1.AppImage::https://github.com/ppy/osu/releases/download/2024.312.1/osu.AppImage + source = osu-resources_LICENCE.md::https://github.com/ppy/osu-resources/raw/master/LICENCE.md + source = osu-lazer.bash + source = osu-lazer.desktop + source = osu-lazer.xml + b2sums = b920870e64bfc11f6ec8202c27e4c5a44477c11a399f0781992a174f898914e35b9ac0124d2b1ae57de9e4ceae200613aba77f64e6210cd5bdb711eeb414fc90 + b2sums = 7b7d10932a3c9b07ae10870c7830cacb2dd7164ec3e13ca419a931d6702c496b3ca2b7430f52aa3e71727b8d5f089f174ab13b1c69698925b2e37f8634e3fbff + b2sums = 3d377020b6ac00d2a25ff3a9971b66791593d541a8cdca8e5eaeb815804dd6e4528eea8aa5969dc111e6a7e6940277c3a8f12b170be2a7669ffceebabbd6c0d6 + b2sums = 7730cd8b5d5d7fe362e5ccd3023ed4bedf099e851b41db0c75f6a6908375989c3f69900cdb80df2e42031fe9111bf52c4c9fb011a144e5738494996894474428 + b2sums = 5ba7f0bcfa2b96b638a19490af619511cea834aa0dfded0efd3262a244bd168fd3362ff3e92a62c6b1a97165b82d52cbf7a11076104fe374c292cc3879e8cb13 + +pkgname = osu-lazer-bin diff --git a/packages/osu-lazer-bin/.gitignore b/packages/osu-lazer-bin/.gitignore new file mode 100644 index 0000000..f9906b0 --- /dev/null +++ b/packages/osu-lazer-bin/.gitignore @@ -0,0 +1 @@ +osu-resources_LICENCE.md diff --git a/packages/osu-lazer-bin/PKGBUILD b/packages/osu-lazer-bin/PKGBUILD new file mode 100644 index 0000000..77b2495 --- /dev/null +++ b/packages/osu-lazer-bin/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Puqns67 +# Contributor: David Husička +# Contributor: Tyler Nelson +# Contributor: Tuhana GAYRETLİ +# Contributor: Quenten Schoonderwoerd +# Contributor: Antti + +# This PKGBUILD is base on the AUR repo osu-lazer-bin, from these contributors above + +_pkgname='osu-lazer' +pkgname="${_pkgname}-bin" +pkgver=2024.312.1 +pkgrel=2 +pkgdesc="The future of osu! and the beginning of an open era! Commonly known by the codename osu!lazer. Pew pew." +arch=('x86_64') +url='https://osu.ppy.sh/' +license=('MIT' 'CC-BY-NC-4.0') +depends=('bash' 'ffmpeg4.4' 'gcc-libs' 'glibc' 'lttng-ust2.12' 'zlib') +provides=("${_pkgname}") +conflicts=("${_pkgname}") + +source=("${_pkgname}-${pkgver}.AppImage"::"https://github.com/ppy/osu/releases/download/${pkgver}/osu.AppImage" + 'osu-resources_LICENCE.md'::'https://github.com/ppy/osu-resources/raw/master/LICENCE.md' + 'osu-lazer.bash' + 'osu-lazer.desktop' + 'osu-lazer.xml') + +b2sums=('b920870e64bfc11f6ec8202c27e4c5a44477c11a399f0781992a174f898914e35b9ac0124d2b1ae57de9e4ceae200613aba77f64e6210cd5bdb711eeb414fc90' + '7b7d10932a3c9b07ae10870c7830cacb2dd7164ec3e13ca419a931d6702c496b3ca2b7430f52aa3e71727b8d5f089f174ab13b1c69698925b2e37f8634e3fbff' + '3d377020b6ac00d2a25ff3a9971b66791593d541a8cdca8e5eaeb815804dd6e4528eea8aa5969dc111e6a7e6940277c3a8f12b170be2a7669ffceebabbd6c0d6' + '7730cd8b5d5d7fe362e5ccd3023ed4bedf099e851b41db0c75f6a6908375989c3f69900cdb80df2e42031fe9111bf52c4c9fb011a144e5738494996894474428' + '5ba7f0bcfa2b96b638a19490af619511cea834aa0dfded0efd3262a244bd168fd3362ff3e92a62c6b1a97165b82d52cbf7a11076104fe374c292cc3879e8cb13') + +build() { + # Extract AppImage + cd "${srcdir}" + "${srcdir}/${_pkgname}-${pkgver}.AppImage" --appimage-extract +} + +package() { + # Install osu-lazer and libraries + install -dm755 "${pkgdir}/usr/lib" + mv -v "${srcdir}/squashfs-root/usr/bin" "${pkgdir}/usr/lib/${_pkgname}" + + # Install launch script + install -Dm755 "${srcdir}/osu-lazer.bash" "${pkgdir}/usr/bin/${_pkgname}" + + # Install license file + install -Dm644 "${srcdir}/osu-resources_LICENCE.md" "${pkgdir}/usr/share/licenses/${pkgname}/osu-resources_LICENCE.md" + + # Install icon, desktop and mime files + install -Dm644 "${srcdir}/squashfs-root/osu!.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png" + install -Dm644 "${srcdir}/osu-lazer.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" + install -Dm644 "${srcdir}/osu-lazer.xml" "${pkgdir}/usr/share/mime/packages/${_pkgname}.xml" +} diff --git a/packages/osu-lazer-bin/osu-lazer.bash b/packages/osu-lazer-bin/osu-lazer.bash new file mode 100644 index 0000000..9770388 --- /dev/null +++ b/packages/osu-lazer-bin/osu-lazer.bash @@ -0,0 +1,2 @@ +#!/usr/bin/bash +OSU_EXTERNAL_UPDATE_PROVIDER=true /usr/lib/osu-lazer/osu! "$@" diff --git a/packages/osu-lazer-bin/osu-lazer.desktop b/packages/osu-lazer-bin/osu-lazer.desktop new file mode 100644 index 0000000..7b6f985 --- /dev/null +++ b/packages/osu-lazer-bin/osu-lazer.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Name=osu!lazer +Icon=osu-lazer +Comment=Rhythm is just a *click* away! +MimeType=application/x-osu-lazer-beatmap;application/x-osu-lazer-skin;x-scheme-handler/osu; +Exec=/usr/bin/osu-lazer %U +Categories=Game; +Terminal=false +StartupWMClass=osu! +StartupNotify=true diff --git a/packages/osu-lazer-bin/osu-lazer.xml b/packages/osu-lazer-bin/osu-lazer.xml new file mode 100644 index 0000000..3d7de37 --- /dev/null +++ b/packages/osu-lazer-bin/osu-lazer.xml @@ -0,0 +1,17 @@ + + + + osu! Beatmap + osu! 谱面 + + + + + + osu! Skin + osu! 皮肤 + + + + +