Skip to content

Instantly share code, notes, and snippets.

@MCMic MCMic/PKGBUILD Secret
Created Jan 24, 2019

Embed
What would you like to do?
# Maintainer: HER0_01 <aconrad103 at gmail.com>
# Contributor: MCMic <come at chilliet.eu>
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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.