Last active
August 29, 2015 14:17
-
-
Save Kwarf/54184c84f27e0a02afbe to your computer and use it in GitHub Desktop.
PKGBUILD for https://github.com/sandsmark/kart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jimmy Bergstrom <thekwarf@gmail.com> | |
_pkgname=kart | |
pkgname=$_pkgname-git | |
pkgver=r248.44ada62 | |
pkgrel=2 | |
pkgdesc="Compocase for the AI programming competition at The Gathering 2015" | |
arch=('i686' 'x86_64') | |
url="https://github.com/sandsmark/kart" | |
license=('MIT') | |
depends=('sdl2') | |
source=('git+https://github.com/sandsmark/kart.git' | |
'https://gist.githubusercontent.com/Kwarf/b47e0bc35dda2db0c250/raw/093db0adb7f5bf90b4f1c0019704544d07c5e921/kart.sh') | |
md5sums=('SKIP' | |
'862ad458a61c631fd4119efa91a02a7d') | |
pkgver() { | |
cd "$_pkgname" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
build() { | |
cd "$_pkgname" | |
make | |
} | |
package() { | |
install -m755 -D kart.sh "$pkgdir/usr/bin/kart" | |
cd "$srcdir/$_pkgname" | |
install -m755 -D kart "$pkgdir/opt/kart/kart" | |
install -m644 -t "$pkgdir/opt/kart" *.map | |
install -m755 -d "$pkgdir/opt/kart/assets" | |
install -m644 -t "$pkgdir/opt/kart/assets" assets/*.bmp | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment