-
Notifications
You must be signed in to change notification settings - Fork 6
/
PKGBUILD
27 lines (25 loc) · 1.13 KB
/
PKGBUILD
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
pkgname="beatsabermodmanager"
_pkgname="BeatSaberModManager"
pkgver="0.0.1"
pkgrel="1"
pkgdesc="Yet another mod installer for Beat Saber, heavily inspired by ModAssistant"
arch=("x86_64")
url="https://github.com/affederaffe/BeatSaberModManager"
license=("MIT")
depends=("dotnet-runtime")
makedepends=("dotnet-sdk" "git" "imagemagick" "gendesk")
options=("!strip")
source=("$url/archive/v$pkgver.tar.gz")
sha256sums=("e83160d6d64ebf9ca8516ce44de09a74a640b8725f5ffe3d08774655f96d2c6a")
build() {
cd "$_pkgname-$pkgver"
git clone https://github.com/geefr/BSIPA-Linux.git
dotnet publish -c Release -r linux-x64 --no-self-contained -p:EnableSingleFileAnalyzer=false --output ../$_pkgname
}
package() {
convert "$_pkgname/Resources/Icons/Icon.ico" "$pkgname.png"
gendesk -n --pkgname "$pkgname" --name "$_pkgname" --pkgdesc "$pkgdesc" --comment "$pkgdesc" --categories "Game;Utility" --icon "$pkgname.png"
install -Dm755 "$_pkgname/$_pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
}