# Maintainer: neeshy # Contributor: Nguyễn Chính Hữu # Contributor: Ammon Smith # Contributor: Nicole Fontenot # Contributor: "Ferdi265" [AUR] # Contributor: "downbtn" [AUR] # Contributor: "Roliga" [AUR] # Contributor: "donaldtrump" [AUR] pkgname=osu-lazer-git _pkgname=osu pkgver=latest pkgrel=1 pkgdesc="rhythm is just a *click* away!" arch=('x86_64') url="https://osu.ppy.sh/" license=('MIT' 'custom:CC-BY-NC-4.0') depends=('ffmpeg' 'libgl' 'sdl2' 'dotnet-runtime-6.0') makedepends=('git' 'dotnet-sdk>=6.0.8.sdk400') provides=('osu-lazer') conflicts=('osu-lazer') source=("git+https://github.com/ppy/osu.git" "https://github.com/ppy/osu-resources/raw/master/LICENCE.md" "osu-lazer.sh" "osu-lazer.desktop" "osu-lazer.xml") sha256sums=('SKIP' '30b914824784b6ba6b30a44b22bea4f3c6fbc10f3f0e74fde5ca76a92ef57244' 'b645a8653c78b136c4934194b3dce390e854b3c90c43c889631b9ab3b77022af' '0e117a17c394de80db9b9fdd526de3701d6de6ff1141e5fac57985f2573ae102' 'ee77425386d476f0f45d73e1ef3a0b5a2bbe8c1ad03716a5ff3e6f7afdad1458') pkgver() { cd "$srcdir/$_pkgname" git describe --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g' } build() { cd "$srcdir/$_pkgname" DOTNET_CLI_TELEMETRY_OPTOUT="1" dotnet publish osu.Desktop \ --framework net6.0 \ --configuration Release \ --use-current-runtime \ --no-self-contained \ --output output } package() { cd "$srcdir/$_pkgname" 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-git/MIT" install -Dm644 "$srcdir/LICENCE.md" "$pkgdir/usr/share/licenses/osu-lazer-git/CC-BY-NC-4.0" }