From d12231326ac7000cf4d8ebc350caba9040d6478e Mon Sep 17 00:00:00 2001 From: Puqns67 Date: Sat, 13 Apr 2024 21:34:09 +0800 Subject: [PATCH] osu-bin/2024.412.1: rename from osu-lazer-bin, update --- packages/osu-bin/.SRCINFO | 32 +++++++++ packages/osu-bin/.gitignore | 1 + packages/osu-bin/PKGBUILD | 65 +++++++++++++++++++ packages/osu-bin/osu.bash | 2 + packages/osu-bin/osu.desktop | 11 ++++ .../osu-lazer.xml => osu-bin/osu.xml} | 8 +-- packages/osu-lazer-bin/.SRCINFO | 26 -------- 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 ---- 11 files changed, 115 insertions(+), 99 deletions(-) create mode 100644 packages/osu-bin/.SRCINFO create mode 100644 packages/osu-bin/.gitignore create mode 100644 packages/osu-bin/PKGBUILD create mode 100755 packages/osu-bin/osu.bash create mode 100644 packages/osu-bin/osu.desktop rename packages/{osu-lazer-bin/osu-lazer.xml => osu-bin/osu.xml} (74%) delete mode 100644 packages/osu-lazer-bin/.SRCINFO delete mode 100644 packages/osu-lazer-bin/.gitignore delete mode 100644 packages/osu-lazer-bin/PKGBUILD delete mode 100644 packages/osu-lazer-bin/osu-lazer.bash delete mode 100644 packages/osu-lazer-bin/osu-lazer.desktop diff --git a/packages/osu-bin/.SRCINFO b/packages/osu-bin/.SRCINFO new file mode 100644 index 0000000..31cd625 --- /dev/null +++ b/packages/osu-bin/.SRCINFO @@ -0,0 +1,32 @@ +pkgbase = osu-bin + pkgdesc = A free-to-win rhythm game. Rhythm is just a click away! + pkgver = 2024.412.1 + pkgrel = 1 + 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 = sdl2 + depends = zlib + provides = osu + provides = osu-lazer + conflicts = osu + conflicts = osu-lazer + replaces = osu-lazer + source = osu-2024.412.1.AppImage::https://github.com/ppy/osu/releases/download/2024.412.1/osu.AppImage + source = osu-resources-LICENCE-2024.410.0.md::https://github.com/ppy/osu-resources/raw/2024.410.0/LICENCE.md + source = osu.bash + source = osu.desktop + source = osu.xml + b2sums = 72b4031eae04765797b4a9395c01418ac3b3d16d90472dc489c240218f1f8778ffe7291daeca8dca79d9f831be7940005b57d5b0e17344d79def1e2d0b1c3a22 + b2sums = 7b7d10932a3c9b07ae10870c7830cacb2dd7164ec3e13ca419a931d6702c496b3ca2b7430f52aa3e71727b8d5f089f174ab13b1c69698925b2e37f8634e3fbff + b2sums = 63c4f291210a06d1116689ba073fd370ab72db8bd951cf445da447d39a2c05492cebd37c293bf72519e6c86efb97600a9ac146d31ba29b8b6543cc50bcb9c6e9 + b2sums = c2562cacd36b07727e8d40fd413f29c5a935f35dd0fa0943a934844b30c4aca80d527ac8a6b40d7366e039760903cdb6cdd72e1e6354271ad359517df87550ff + b2sums = 738e9f7a8a0e9e1871b682f15e72714b9c1c53a21328495b4588172dfae810828cc8df1b5a85e66a6058bd5b6a1fd059932f0304a8a5afda2992f27809257001 + +pkgname = osu-bin diff --git a/packages/osu-bin/.gitignore b/packages/osu-bin/.gitignore new file mode 100644 index 0000000..f9bbf5a --- /dev/null +++ b/packages/osu-bin/.gitignore @@ -0,0 +1 @@ +osu-resources-LICENCE-*.md diff --git a/packages/osu-bin/PKGBUILD b/packages/osu-bin/PKGBUILD new file mode 100644 index 0000000..9d66feb --- /dev/null +++ b/packages/osu-bin/PKGBUILD @@ -0,0 +1,65 @@ +# 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 + +_appname='osu' +_appver=2024.412.1 +_resname='osu-resources' +_resver=2024.410.0 + +pkgname="${_appname}-bin" +pkgver="${_appver}" +pkgrel=1 +pkgdesc="A free-to-win rhythm game. Rhythm is just a click away!" +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' 'sdl2' 'zlib') +provides=("${_appname}" 'osu-lazer') +conflicts=("${_appname}" 'osu-lazer') +replaces=('osu-lazer') + +source=("${_appname}-${_appver}.AppImage"::"https://github.com/ppy/osu/releases/download/${_appver}/osu.AppImage" + "${_resname}-LICENCE-${_resver}.md"::"https://github.com/ppy/osu-resources/raw/${_resver}/LICENCE.md" + "${_appname}.bash" + "${_appname}.desktop" + "${_appname}.xml") + +b2sums=('72b4031eae04765797b4a9395c01418ac3b3d16d90472dc489c240218f1f8778ffe7291daeca8dca79d9f831be7940005b57d5b0e17344d79def1e2d0b1c3a22' + '7b7d10932a3c9b07ae10870c7830cacb2dd7164ec3e13ca419a931d6702c496b3ca2b7430f52aa3e71727b8d5f089f174ab13b1c69698925b2e37f8634e3fbff' + '63c4f291210a06d1116689ba073fd370ab72db8bd951cf445da447d39a2c05492cebd37c293bf72519e6c86efb97600a9ac146d31ba29b8b6543cc50bcb9c6e9' + 'c2562cacd36b07727e8d40fd413f29c5a935f35dd0fa0943a934844b30c4aca80d527ac8a6b40d7366e039760903cdb6cdd72e1e6354271ad359517df87550ff' + '738e9f7a8a0e9e1871b682f15e72714b9c1c53a21328495b4588172dfae810828cc8df1b5a85e66a6058bd5b6a1fd059932f0304a8a5afda2992f27809257001') + +prepare() { + # Extract AppImage + cd "${srcdir}" + chmod +x "${srcdir}/${_appname}-${_appver}.AppImage" + "${srcdir}/${_appname}-${_appver}.AppImage" --appimage-extract + + # Use system libraries + cd "${srcdir}/squashfs-root/usr/bin" + rm -v lib{av*,SDL2}.so* +} + +package() { + # Install osu and libraries + install -dm755 "${pkgdir}/usr/lib" + mv -v "${srcdir}/squashfs-root/usr/bin" "${pkgdir}/usr/lib/${_appname}" + + # Install launch script + install -Dm755 "${srcdir}/${_appname}.bash" "${pkgdir}/usr/bin/${_appname}" + + # Install license file + install -Dm644 "${srcdir}/${_resname}-LICENCE-${_resver}.md" "${pkgdir}/usr/share/licenses/${pkgname}/${_resname}-LICENCE-${_resver}.md" + + # Install icon, desktop and mime files + install -Dm644 "${srcdir}/squashfs-root/osu!.png" "${pkgdir}/usr/share/pixmaps/${_appname}.png" + install -Dm644 "${srcdir}/${_appname}.desktop" "${pkgdir}/usr/share/applications/${_appname}.desktop" + install -Dm644 "${srcdir}/${_appname}.xml" "${pkgdir}/usr/share/mime/packages/${_appname}.xml" +} diff --git a/packages/osu-bin/osu.bash b/packages/osu-bin/osu.bash new file mode 100755 index 0000000..9c2b01c --- /dev/null +++ b/packages/osu-bin/osu.bash @@ -0,0 +1,2 @@ +#!/usr/bin/bash +OSU_EXTERNAL_UPDATE_PROVIDER=true exec /usr/lib/osu/osu! "$@" diff --git a/packages/osu-bin/osu.desktop b/packages/osu-bin/osu.desktop new file mode 100644 index 0000000..ded6cca --- /dev/null +++ b/packages/osu-bin/osu.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Name=osu! +Icon=osu +Comment=Rhythm is just a *click* away! +MimeType=application/x-osu-beatmap;application/x-osu-skin;x-scheme-handler/osu; +Exec=/usr/bin/osu %U +Categories=Game; +Terminal=false +StartupWMClass=osu! +StartupNotify=true diff --git a/packages/osu-lazer-bin/osu-lazer.xml b/packages/osu-bin/osu.xml similarity index 74% rename from packages/osu-lazer-bin/osu-lazer.xml rename to packages/osu-bin/osu.xml index 3d7de37..550087f 100644 --- a/packages/osu-lazer-bin/osu-lazer.xml +++ b/packages/osu-bin/osu.xml @@ -1,17 +1,17 @@ - + osu! Beatmap osu! 谱面 - + - + osu! Skin osu! 皮肤 - + diff --git a/packages/osu-lazer-bin/.SRCINFO b/packages/osu-lazer-bin/.SRCINFO deleted file mode 100644 index 5e0270c..0000000 --- a/packages/osu-lazer-bin/.SRCINFO +++ /dev/null @@ -1,26 +0,0 @@ -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 = 3 - url = https://osu.ppy.sh/ - arch = x86_64 - license = MIT - license = CC-BY-NC-4.0 - depends = bash - depends = gcc-libs - depends = glibc - 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 deleted file mode 100644 index f9906b0..0000000 --- a/packages/osu-lazer-bin/.gitignore +++ /dev/null @@ -1 +0,0 @@ -osu-resources_LICENCE.md diff --git a/packages/osu-lazer-bin/PKGBUILD b/packages/osu-lazer-bin/PKGBUILD deleted file mode 100644 index 7bb03f2..0000000 --- a/packages/osu-lazer-bin/PKGBUILD +++ /dev/null @@ -1,55 +0,0 @@ -# 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=3 -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' 'gcc-libs' 'glibc' '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') - -prepare() { - # 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 deleted file mode 100644 index 9770388..0000000 --- a/packages/osu-lazer-bin/osu-lazer.bash +++ /dev/null @@ -1,2 +0,0 @@ -#!/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 deleted file mode 100644 index 7b6f985..0000000 --- a/packages/osu-lazer-bin/osu-lazer.desktop +++ /dev/null @@ -1,11 +0,0 @@ -[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