osu-bin/2024.1208.0-1: update

This commit is contained in:
Puqns67 2024-12-09 19:57:25 +08:00
parent fdf478efde
commit 57b9d830b9
Signed by: Puqns67
GPG Key ID: 9669DF042554F536
3 changed files with 24 additions and 23 deletions

View File

@ -1,6 +1,6 @@
pkgbase = osu-bin pkgbase = osu-bin
pkgdesc = A free-to-win rhythm game. Rhythm is just a click away! pkgdesc = A free-to-win rhythm game. Rhythm is just a click away!
pkgver = 2024.1115.3 pkgver = 2024.1208.0
pkgrel = 1 pkgrel = 1
url = https://osu.ppy.sh/ url = https://osu.ppy.sh/
arch = x86_64 arch = x86_64
@ -23,15 +23,15 @@ pkgbase = osu-bin
replaces = osu-lazer replaces = osu-lazer
replaces = osu-lazer-bin replaces = osu-lazer-bin
options = !debug options = !debug
source = osu-2024.1115.3.AppImage::https://github.com/ppy/osu/releases/download/2024.1115.3/osu.AppImage source = osu-2024.1208.0.AppImage::https://github.com/ppy/osu/releases/download/2024.1208.0/osu.AppImage
source = osu-resources-LICENCE-2024.1106.0.md::https://github.com/ppy/osu-resources/raw/2024.1106.0/LICENCE.md source = osu-resources-LICENCE-2024.1202.0.md::https://github.com/ppy/osu-resources/raw/2024.1202.0/LICENCE.md
source = osu.bash source = osu.bash
source = osu.desktop source = osu.desktop
source = osu.xml source = osu.xml
b2sums = 3823474c93576f13bb43f70c7edf4bbaea5eca8cecaaaef4f0a04901cba9de76730b100ee83fbdd5891dc5be24e002b015754e84e69d0169b3cce20781457673 b2sums = 390761984c0f0f1a7272dedecf699d2a76a7473a9320b031d04260e72b886fda7f890791cab92a4f406fd35b9d1116b9992098e0508518f4bd3a2f6bbc635622
b2sums = 7b7d10932a3c9b07ae10870c7830cacb2dd7164ec3e13ca419a931d6702c496b3ca2b7430f52aa3e71727b8d5f089f174ab13b1c69698925b2e37f8634e3fbff b2sums = 7b7d10932a3c9b07ae10870c7830cacb2dd7164ec3e13ca419a931d6702c496b3ca2b7430f52aa3e71727b8d5f089f174ab13b1c69698925b2e37f8634e3fbff
b2sums = 57413ec0582254216196c52cddc7c4635c61efcd7a2b538dd61628960b7bc91c09160bd39d6383c69ae470d4d3b6a9a6b4fb67f457ac91996bbcfebb8762880b b2sums = 57413ec0582254216196c52cddc7c4635c61efcd7a2b538dd61628960b7bc91c09160bd39d6383c69ae470d4d3b6a9a6b4fb67f457ac91996bbcfebb8762880b
b2sums = c1f20062245a02bdaef45ee0eb18c6eefd1faa09b6354d3dc83951e844cdf72a1832fdacad05139c1cfa54afd6ac0e0912971a7f4c324d4e5a6c681e833df1e7 b2sums = a8092d2bdd6b72b2072178ae620f0d16fe93f17061e3ef789cba2ca5eb236d7277b78ea4c7838053ebd08b025c2255ac6ce2f5587c34e8dde04fe4a04f2e1fa3
b2sums = 9e1f8221c14c1c7a3a7046321e850f92c12ff8782bf09e4f358b9a1912fd41791fec2eb56c81ae416b895ae8fd7176495d63da3c4a2f0f24eb97bd2e4e422b5f b2sums = 9e1f8221c14c1c7a3a7046321e850f92c12ff8782bf09e4f358b9a1912fd41791fec2eb56c81ae416b895ae8fd7176495d63da3c4a2f0f24eb97bd2e4e422b5f
pkgname = osu-bin pkgname = osu-bin

View File

@ -8,9 +8,9 @@
# This PKGBUILD is base on the AUR repo osu-lazer-bin, from these contributors above # This PKGBUILD is base on the AUR repo osu-lazer-bin, from these contributors above
_appname='osu' _appname='osu'
_appver='2024.1115.3' _appver='2024.1208.0'
_resname='osu-resources' _resname='osu-resources'
_resver='2024.1106.0' _resver='2024.1202.0'
pkgname="${_appname}-bin" pkgname="${_appname}-bin"
pkgver="${_appver}" pkgver="${_appver}"
@ -33,10 +33,10 @@ source=("${_appname}-${_appver}.AppImage"::"https://github.com/ppy/osu/releases/
"${_appname}.desktop" "${_appname}.desktop"
"${_appname}.xml") "${_appname}.xml")
b2sums=('3823474c93576f13bb43f70c7edf4bbaea5eca8cecaaaef4f0a04901cba9de76730b100ee83fbdd5891dc5be24e002b015754e84e69d0169b3cce20781457673' b2sums=('390761984c0f0f1a7272dedecf699d2a76a7473a9320b031d04260e72b886fda7f890791cab92a4f406fd35b9d1116b9992098e0508518f4bd3a2f6bbc635622'
'7b7d10932a3c9b07ae10870c7830cacb2dd7164ec3e13ca419a931d6702c496b3ca2b7430f52aa3e71727b8d5f089f174ab13b1c69698925b2e37f8634e3fbff' '7b7d10932a3c9b07ae10870c7830cacb2dd7164ec3e13ca419a931d6702c496b3ca2b7430f52aa3e71727b8d5f089f174ab13b1c69698925b2e37f8634e3fbff'
'57413ec0582254216196c52cddc7c4635c61efcd7a2b538dd61628960b7bc91c09160bd39d6383c69ae470d4d3b6a9a6b4fb67f457ac91996bbcfebb8762880b' '57413ec0582254216196c52cddc7c4635c61efcd7a2b538dd61628960b7bc91c09160bd39d6383c69ae470d4d3b6a9a6b4fb67f457ac91996bbcfebb8762880b'
'c1f20062245a02bdaef45ee0eb18c6eefd1faa09b6354d3dc83951e844cdf72a1832fdacad05139c1cfa54afd6ac0e0912971a7f4c324d4e5a6c681e833df1e7' 'a8092d2bdd6b72b2072178ae620f0d16fe93f17061e3ef789cba2ca5eb236d7277b78ea4c7838053ebd08b025c2255ac6ce2f5587c34e8dde04fe4a04f2e1fa3'
'9e1f8221c14c1c7a3a7046321e850f92c12ff8782bf09e4f358b9a1912fd41791fec2eb56c81ae416b895ae8fd7176495d63da3c4a2f0f24eb97bd2e4e422b5f') '9e1f8221c14c1c7a3a7046321e850f92c12ff8782bf09e4f358b9a1912fd41791fec2eb56c81ae416b895ae8fd7176495d63da3c4a2f0f24eb97bd2e4e422b5f')
prepare() { prepare() {
@ -59,40 +59,40 @@ prepare() {
mkdir -v "${srcdir}/icons" mkdir -v "${srcdir}/icons"
pushd "${srcdir}/icons" pushd "${srcdir}/icons"
magick -verbose "${srcdir}/squashfs-root/usr/bin/lazer.ico" osu.png magick -verbose "${srcdir}/squashfs-root/usr/bin/lazer.ico" osu.png
cp -v "${srcdir}/squashfs-root/osu!.png" osu-origin.png
magick -verbose osu-origin.png -resize "128x128!" osu-downscaled@128.png
magick -verbose osu-origin.png -resize "512x512!" osu-downscaled@512.png
magick -verbose "${srcdir}/squashfs-root/usr/bin/beatmap.ico" beatmap.png magick -verbose "${srcdir}/squashfs-root/usr/bin/beatmap.ico" beatmap.png
eval $(magick identify -format "mv -v %f osu-%G;" osu*.png) eval $(magick identify -format "mv -v %f osu-%G;" osu*.png)
eval $(magick identify -format "mv -v %f beatmap-%G;" beatmap*.png) eval $(magick identify -format "mv -v %f beatmap-%G;" beatmap*.png)
for icon in $srcdir/squashfs-root/usr/share/icons/hicolor/*/apps/osu.png; do
mv -v "${icon}" "osu-$(echo "${icon}" | sed 's/^.*\/\([0-9]\{2,4\}x[0-9]\{2,4\}\)\/.*$/\1/g')"
done
popd popd
} }
package() { package() {
# Install osu and libraries # Install osu and libraries
install -dm755 "${pkgdir}/usr/lib" install -vdm755 "${pkgdir}/usr/lib"
mv "${srcdir}/squashfs-root/usr/bin" "${pkgdir}/usr/lib/${_appname}" mv "${srcdir}/squashfs-root/usr/bin" "${pkgdir}/usr/lib/${_appname}"
# Install launch script # Install launch script
install -Dm755 "${srcdir}/${_appname}.bash" "${pkgdir}/usr/bin/${_appname}" install -vDm755 "${srcdir}/${_appname}.bash" "${pkgdir}/usr/bin/${_appname}"
# Install license file # Install license file
install -Dm644 "${srcdir}/${_resname}-LICENCE-${_resver}.md" "${pkgdir}/usr/share/licenses/${pkgname}/${_resname}-LICENCE.md" install -vDm644 "${srcdir}/${_resname}-LICENCE-${_resver}.md" "${pkgdir}/usr/share/licenses/${pkgname}/${_resname}-LICENCE.md"
# Install desktop and mime files # Install desktop and mime files
install -Dm644 "${srcdir}/${_appname}.desktop" "${pkgdir}/usr/share/applications/${_appname}.desktop" install -vDm644 "${srcdir}/${_appname}.desktop" "${pkgdir}/usr/share/applications/${_appname}.desktop"
install -Dm644 "${srcdir}/${_appname}.xml" "${pkgdir}/usr/share/mime/packages/${_appname}.xml" install -vDm644 "${srcdir}/${_appname}.xml" "${pkgdir}/usr/share/mime/packages/${_appname}.xml"
# Install icons # Install icons
pushd "${srcdir}/icons" pushd "${srcdir}/icons"
for icon in osu-*; do for icon in osu-*; do
install -Dm644 "${icon}" "${pkgdir}/usr/share/icons/hicolor/$(echo "${icon}" | cut -d- -f2 -)/apps/${_appname}.png" install -vDm644 "${icon}" "${pkgdir}/usr/share/icons/hicolor/$(echo "${icon}" | cut -d- -f2 -)/apps/${_appname}.png"
done done
for icon in beatmap-*; do for icon in beatmap-*; do
install -Dm644 "${icon}" "${pkgdir}/usr/share/icons/hicolor/$(echo "${icon}" | cut -d- -f2 -)/mimetypes/${_appname}-beatmap.png" install -vDm644 "${icon}" "${pkgdir}/usr/share/icons/hicolor/$(echo "${icon}" | cut -d- -f2 -)/mimetypes/${_appname}-beatmap.png"
done done
popd popd
} }

View File

@ -2,10 +2,11 @@
Type=Application Type=Application
Name=osu! Name=osu!
Icon=osu Icon=osu
Comment=Rhythm is just a *click* away!
MimeType=application/x-osu-beatmap;application/x-osu-beatmap-archive;application/x-osu-skin-archive;application/x-osu-storyboard;application/x-osu-replay;x-scheme-handler/osu;
Exec=/usr/bin/osu %U Exec=/usr/bin/osu %U
Comment=A free-to-win rhythm game. Rhythm is just a *click* away!
Categories=Game; Categories=Game;
Terminal=false MimeType=application/x-osu-beatmap;application/x-osu-beatmap-archive;application/x-osu-skin-archive;application/x-osu-storyboard;application/x-osu-replay;x-scheme-handler/osu;
SingleMainWindow=true
StartupWMClass=osu! StartupWMClass=osu!
StartupNotify=true StartupNotify=true
Terminal=false