blob: aa407289e732607fe0b6392749018f01e08b0f20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: neeshy <neeshy@tfwno.gf>
# Contributor: morguldir <morguldir@protonmail.com
# Contributor: Ammon Smith <ammon.i.smith@gmail.com>
# Contributor: Nicole Fontenot <nfontenot27@gmail.com>
# Contributor: "donaldtrump" [AUR]
pkgname=osu-lazer
_pkgname=osu
pkgver=2024.1208.0
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 AND CC-BY-NC-4.0')
depends=('ffmpeg' 'libgl' 'sdl2' 'dotnet-runtime-8.0')
makedepends=('dotnet-sdk-8.0')
source=("https://github.com/ppy/osu/archive/$pkgver.tar.gz"
"osu-lazer.sh"
"osu-lazer.desktop"
"osu-lazer.xml")
sha256sums=('43310acec52e4bdab27f9799f755a91340005ea66918d8df444292d75d14ead4'
'488b52f62445054d0615c334b6bd81ffa70d00964e91384a9cad92c54b216b3d'
'c22099222c01f33979e17ec0575b864f018f5f416919f9ed1b2b99584a5d37d6'
'e01a156e7c9bb11ad5b1e1698b029378cb971c29469fc3dceca9421e9a81f3e8')
build() {
cd "$srcdir/$_pkgname-$pkgver"
DOTNET_CLI_TELEMETRY_OPTOUT="1" dotnet publish osu.Desktop \
--framework net8.0 \
--configuration Release \
--use-current-runtime \
--no-self-contained \
--output output \
/property:Version="$pkgver"
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
install -d "$pkgdir/opt/osu-lazer"
cp -r output/* "$pkgdir/opt/osu-lazer"
install -Dm755 "$srcdir/osu-lazer.sh" "$pkgdir/usr/bin/osu-lazer"
install -Dm644 "$srcdir/osu-lazer.desktop" "$pkgdir/usr/share/applications/osu-lazer.desktop"
install -Dm644 "$srcdir/osu-lazer.xml" "$pkgdir/usr/share/mime/packages/osu-lazer.xml"
install -Dm644 assets/lazer-nuget.png "$pkgdir/usr/share/icons/hicolor/128x128/apps/osu-lazer.png"
install -Dm644 assets/lazer.png "$pkgdir/usr/share/icons/hicolor/1024x1024/apps/osu-lazer.png"
install -Dm644 LICENCE "$pkgdir/usr/share/licenses/osu-lazer/LICENCE"
# Fix Vulkan renderer. See: https://github.com/ppy/osu/discussions/27659#discussioncomment-9101487
ln -sf /usr/lib/libdl.so.2 "$pkgdir/opt/osu-lazer/libdl.so"
}
|