olympus-bin/PKGBUILD

58 lines
1.8 KiB
Text
Raw Permalink Normal View History

2021-02-09 17:17:11 -06:00
# Maintainer: Moses Miller <Majora320@gmail.com>
2022-03-04 03:21:22 -06:00
fetch_version() {
python <<EOF
import requests,json
response = requests.get("https://dev.azure.com/EverestAPI/Olympus/_apis/build/builds")
builds = json.loads(response.text)
stable_builds = -1
for b in builds["value"]:
if b["sourceBranch"] == "refs/heads/stable" :
stable_builds = max(int(b["id"]), stable_builds)
if stable_builds == -1:
os.exit(1)
else:
print(stable_builds)
EOF
}
2021-02-09 17:17:11 -06:00
pkgname=olympus-bin
2022-03-04 03:21:22 -06:00
pkgver=$(fetch_version)
2021-02-09 17:17:11 -06:00
pkgrel=1
pkgdesc='A mod manager for Celeste'
arch=('x86_64')
url='https://github.com/EverestAPI/Olympus'
license=('MIT')
depends=('love' 'lua51-lsqlite3')
2022-03-23 04:24:04 -05:00
makedepends=('unzip' 'python' 'python-requests')
source=("$pkgname-$pkgver.zip::https://dev.azure.com/EverestAPI/Olympus/_apis/build/builds/$pkgver/artifacts?artifactName=linux.main&\$format=zip")
2021-02-09 17:17:11 -06:00
noextract=("$pkgname-$pkgver.zip")
2024-09-23 01:40:40 -05:00
sha256sums=('94e896d52f1bc04abe83921c77d46818515674c35e0c8a176448c18a12437f93')
2022-03-04 03:21:22 -06:00
2021-02-09 17:17:11 -06:00
prepare() {
unzip "$pkgname-$pkgver.zip"
cd linux.main
unzip dist.zip
}
package() {
cd linux.main
install -Dm755 subprocess.so "$pkgdir/usr/lib/olympus/subprocess.so"
install -Dm755 nfd.so "$pkgdir/usr/lib/olympus/nfd.so"
install -Dm755 olympus.love "$pkgdir/usr/lib/olympus/olympus.love"
install -Dm644 olympus.desktop "$pkgdir/usr/share/applications/olympus.desktop"
install -Dm644 olympus.png "$pkgdir/usr/share/icons/hicolor/128x128/apps/olympus.png"
install -Dm755 olympus "$pkgdir/usr/lib/olympus/olympus"
2023-10-06 03:56:50 -05:00
install -Dm755 find-love "$pkgdir/usr/lib/olympus/find-love"
mkdir -p "$pkgdir/usr/bin"
ln -s "/usr/lib/olympus/olympus" "$pkgdir/usr/bin/olympus"
2021-02-09 17:17:11 -06:00
cp -r sharp "$pkgdir/usr/lib/olympus/sharp"
rm "$pkgdir/usr/lib/olympus/sharp/Olympus.Sharp.bin.osx"
}