osu-lazer-bin/2024.312.1-2: new package

This commit is contained in:
Puqns67 2024-03-13 02:46:02 +08:00
parent 5714218e57
commit f559a70cd9
Signed by: Puqns67
GPG Key ID: 9669DF042554F536
6 changed files with 114 additions and 0 deletions

View File

@ -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

1
packages/osu-lazer-bin/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
osu-resources_LICENCE.md

View File

@ -0,0 +1,55 @@
# Maintainer: Puqns67 <me@puqns67.icu>
# Contributor: David Husička <contact@bydave.net>
# Contributor: Tyler Nelson <neo@cybercat.cc>
# Contributor: Tuhana GAYRETLİ <tuhana at tuta dot io>
# Contributor: Quenten Schoonderwoerd <ellie at nicecock dot eu>
# Contributor: Antti <antti@antti.codes>
# 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"
}

View File

@ -0,0 +1,2 @@
#!/usr/bin/bash
OSU_EXTERNAL_UPDATE_PROVIDER=true /usr/lib/osu-lazer/osu! "$@"

View File

@ -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

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-osu-lazer-beatmap">
<comment>osu! Beatmap</comment>
<comment xml:lang="zh">osu! 谱面</comment>
<sub-class-of type="application/zip"/>
<icon name="osu-lazer" />
<glob pattern="*.osz" />
</mime-type>
<mime-type type="application/x-osu-lazer-skin">
<comment>osu! Skin</comment>
<comment xml:lang="zh">osu! 皮肤</comment>
<sub-class-of type="application/zip"/>
<icon name="osu-lazer" />
<glob pattern="*.osk" />
</mime-type>
</mime-info>