blob: 44d3bbdec90238a2272cd35d34e6e22ea7ccf437 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Nguyen Chinh Huu <huupoke12@gmail.com>
# Contributor: Ammon Smith <ammon.i.smith@gmail.com>
# Contributor: Nicole Fontenot <nfontenot27@gmail.com>
# Contributor: "Ferdi265" [AUR]
# Contributor: "downbtn" [AUR]
# Contributor: "Roliga" [AUR]
# Contributor: "donaldtrump" [AUR]
pkgname=osu-lazer-git
pkgver=2020.104.0.r75.7c3b04c0a
pkgrel=1
pkgdesc="An open source, free-to-win rhythm game"
arch=('any')
url="https://github.com/ppy/osu"
license=('MIT')
groups=()
depends=('dotnet-runtime>=3.1' 'ffmpeg' 'libgl')
makedepends=('git' 'dotnet-sdk>=3.1')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=(!strip)
install=
source=("$pkgname::git+https://github.com/ppy/osu.git"
'osu-lazer-git.sh'
'osu-lazer-git.desktop'
'osu-lazer-git.xml')
noextract=()
sha256sums=('SKIP'
'b0e3f6195988220421bee1484aa4a7260c2861e92fa7b0bf0f3141a60cdc439b'
'6e977d250974783ca02a61cb8cad9b1d8683bcb1ee289d9e1ce2b4ad431b9773'
'8e7c18bcb146cf161a84025934ef2cbe9395b0008535faaeaca4bc4d56194f8f')
pkgver() {
cd "$srcdir/$pkgname"
printf "%s" "$(git describe --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/$pkgname"
env DOTNET_CLI_TELEMETRY_OPTOUT=1 dotnet build -c Release osu.Desktop
}
package() {
# Launcher, Desktop and MIME
cd "$srcdir"
install -Dm755 osu-lazer-git.sh "$pkgdir/usr/bin/${pkgname%-git}"
install -Dm644 osu-lazer-git.desktop "$pkgdir/usr/share/applications/sh.ppy.osu.${pkgname%-git}.desktop"
install -Dm644 osu-lazer-git.xml "$pkgdir/usr/share/mime/packages/${pkgname%-git}.xml"
# Libraries
cd "$srcdir/$pkgname/osu.Desktop/bin/Release/netcoreapp3.1"
find . -maxdepth 1 -type f \! -name 'osu!' -exec install -Dm755 "{}" "$pkgdir/usr/lib/${pkgname%-git}/{}" \;
# Icon and License
cd "$srcdir/$pkgname"
install -Dm644 assets/lazer.png "$pkgdir/usr/share/pixmaps/${pkgname%-git}.png"
install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|