Commit 14e9c162 authored by MCMic's avatar MCMic 🎮

Changed PKGBUILD to custom one with all assets

Fixes #1

If official AUR package gets fixed we’ll go back to it
parent 64cd3b49
Pipeline #44709606 failed with stage
in 32 minutes and 15 seconds
......@@ -7,10 +7,11 @@ live: /tmp/snis/snis.db.tar.gz
repo-add /tmp/snis/snis.db.tar.gz ./snis-git/*.pkg.*
cp ./snis-git/*.pkg.* /tmp/snis/
snis-git:
git clone https://aur.archlinux.org/snis-git.git
#~ snis-git:
#~ git clone https://aur.archlinux.org/snis-git.git
clean:
sudo rm -rf snislive/out
sudo rm -rf snislive/work
rm -rf /tmp/snis
#~ rm -rf snis-git
# Maintainer: HER0_01 <aconrad103 at gmail.com>
pkgname=snis-git
pkgver=4306.6b6265c8
pkgrel=1
pkgdesc="Space Nerds in Space open source spaceship bridge simulator."
arch=('i686' 'x86_64')
url="http://smcameron.github.io/space-nerds-in-space/"
license=('GPL2')
depends=('gtkglext' 'lua52' 'portaudio')
makedepends=('git' 'sdl')
optdepends=('sdl: for using mesh_viewer')
provides=('snis' 'ssgl' 'ssgl-git')
conflicts=('snis')
source=("$pkgname::git://github.com/smcameron/space-nerds-in-space.git"
"https://spacenerdsinspace.com/snis-asset-archives/snis_asset_archive_2019-01-20.tar.bz2")
md5sums=('SKIP'
'dfc738c80466040f5c2d2810080a5b7c')
pkgver() {
cd "$srcdir/$pkgname"
echo $(git rev-list --count master).$(git rev-parse --short master)
}
build() {
cores=`nproc`
cd "$srcdir/$pkgname"
make PREFIX="/usr"
# Avoid making the models while they have been downloaded already
cp -r "$srcdir/share/snis/models" ./share/snis/
}
package() {
cd "$srcdir/$pkgname"
mkdir "$pkgdir/usr"
make PREFIX="/usr" DESTDIR="$pkgdir" install
cp -r "$srcdir/share/snis" "$pkgdir/usr/share/"
rm "$pkgdir/usr/share/applications/mimeinfo.cache"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment