Skip to content

Commit

Permalink
fix crashing on beatmaps with video, pretty PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuhana GAYRETLİ committed Apr 20, 2022
1 parent c3d12fb commit 2a5243f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 39 deletions.
12 changes: 6 additions & 6 deletions .SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ pkgbase = osu-lazer-bin
arch = x86_64
license = MIT
license = custom:CC-BY-NC 4.0
depends = ffmpeg
depends = ffmpeg4.4
depends = zlib
depends = libgl
depends = fuse2
depends = osu-mime
provides = osu-lazer
conflicts = osu-lazer
noextract = osu-lazer-bin-2022.418.0.AppImage
noextract = osu.AppImage
options = !strip
source = osu-lazer-bin-2022.418.0.AppImage::https://github.com/ppy/osu/releases/download/2022.418.0/osu.AppImage
source = osu-lazer-bin.png::https://raw.githubusercontent.com/ppy/osu/master/assets/lazer.png
source = osu-lazer-bin-LICENCE.md::https://raw.githubusercontent.com/ppy/osu-resources/master/LICENCE.md
source = https://github.com/ppy/osu/releases/download/2022.418.0/osu.AppImage
source = https://raw.githubusercontent.com/ppy/osu/master/assets/lazer.png
source = https://raw.githubusercontent.com/ppy/osu-resources/master/LICENCE.md
source = osu-lazer.desktop
sha256sums = b746bd679ee2cdb624da6c1202c0a3e6152adb63be8db99b9f62a6c67674bd88
sha256sums = 36f73cfe0a84cd65a8bb54fcde5a01c419b134bee4a88cc92eb4f33236343a10
sha256sums = 30b914824784b6ba6b30a44b22bea4f3c6fbc10f3f0e74fde5ca76a92ef57244
sha256sums = 09a894825e61bbf27225e596820b23f3ddc83fd13904395e925456e08d690bea
sha256sums = 77ace2dca8f81966222eb7cceea4990cc04043b9b4b54991ff8148fc47123c76

pkgname = osu-lazer-bin
65 changes: 33 additions & 32 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,46 +1,47 @@
## Maintainer: David Husička <[email protected]>
## Contributor: Tyler Nelson <[email protected]>
# Maintainer: David Husička <[email protected]>
# Co-maintainer: Tuhana GAYRETLİ <tuhana at tuta dot io>
# Contributor: Tyler Nelson <[email protected]>

pkgname=osu-lazer-bin
_pkgname=${pkgname%-bin}
pkgver=2022.418.0
pkgrel=1
pkgdesc="The future of osu! and the beginning of an open era! Commonly known by the codename osu!lazer. Pew pew."
arch=('x86_64')
arch=("x86_64")
url="https://osu.ppy.sh"
license=('MIT' 'custom:CC-BY-NC 4.0')
groups=()
depends=(ffmpeg zlib libgl fuse2 osu-mime)
makedepends=()
checkdepends=()
optdepends=()
license=("MIT" "custom:CC-BY-NC 4.0")
depends=(
ffmpeg4.4
zlib
libgl
fuse2
osu-mime
)
provides=(osu-lazer)
conflicts=(osu-lazer)
replaces=()
backup=()
options=(!strip)
install=
changelog=
source=("$pkgname-$pkgver.AppImage::https://github.com/ppy/osu/releases/download/$pkgver/osu.AppImage"
"$pkgname.png::https://raw.githubusercontent.com/ppy/osu/master/assets/lazer.png"
"$pkgname-LICENCE.md::https://raw.githubusercontent.com/ppy/osu-resources/master/LICENCE.md"
"osu-lazer.desktop")
noextract=("$pkgname-$pkgver.AppImage")
sha256sums=("b746bd679ee2cdb624da6c1202c0a3e6152adb63be8db99b9f62a6c67674bd88"
"36f73cfe0a84cd65a8bb54fcde5a01c419b134bee4a88cc92eb4f33236343a10"
"30b914824784b6ba6b30a44b22bea4f3c6fbc10f3f0e74fde5ca76a92ef57244"
"09a894825e61bbf27225e596820b23f3ddc83fd13904395e925456e08d690bea")
source=(
"https://github.com/ppy/osu/releases/download/$pkgver/osu.AppImage"
"https://raw.githubusercontent.com/ppy/osu/master/assets/lazer.png"
"https://raw.githubusercontent.com/ppy/osu-resources/master/LICENCE.md"
"osu-lazer.desktop"
)
noextract=("osu.AppImage")
sha256sums=(
"b746bd679ee2cdb624da6c1202c0a3e6152adb63be8db99b9f62a6c67674bd88"
"36f73cfe0a84cd65a8bb54fcde5a01c419b134bee4a88cc92eb4f33236343a10"
"30b914824784b6ba6b30a44b22bea4f3c6fbc10f3f0e74fde5ca76a92ef57244"
"77ace2dca8f81966222eb7cceea4990cc04043b9b4b54991ff8148fc47123c76"
)

package() {
# Install image
install -Dm644 "${srcdir}"/"${pkgname}".png "${pkgdir}"/usr/share/pixmaps/osu-lazer.png
cd "$srcdir"

# Install license
install -Dm644 "${srcdir}"/"${pkgname}"-LICENCE.md "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENCE.md

# Install desktop file
install -Dm644 osu-lazer.desktop "${pkgdir}"/usr/share/applications/osu-lazer.desktop

# Install binary
install -Dm755 "${srcdir}"/"${pkgname}"-"${pkgver}".AppImage "${pkgdir}"/usr/bin/osu-lazer
# Install pixmap and binary
install -Dm644 lazer.png "$pkgdir/usr/share/pixmaps/osu-lazer.png"
install -Dm755 osu.AppImage "$pkgdir/usr/bin/osu-lazer"

# Install desktop and license file
install -Dm644 -t "$pkgdir/usr/share/applications" osu-lazer.desktop
install -Dm644 -t "$pkgdir/usr/share/licenses/$_pkgname" LICENCE.md
}
2 changes: 1 addition & 1 deletion osu-lazer.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Name=osu!lazer
MimeType=application/x-osu-skin-archive;application/x-osu-replay;application/x-osu-beatmap-archive;x-scheme-handler/osu;
Icon=/usr/share/pixmaps/osu-lazer.png
Comment=Open source free-to-win rhythm game
Exec=env OSU_EXTERNAL_UPDATE_PROVIDER=1 /usr/bin/osu-lazer
Exec=env OSU_EXTERNAL_UPDATE_PROVIDER=1 LD_LIBRARY_PATH=/usr/lib/ffmpeg4.4:"$LD_LIBRARY_PATH" /usr/bin/osu-lazer
Categories=Game;

0 comments on commit 2a5243f

Please sign in to comment.