diff options
author | Carsten Teibes | 2014-08-20 21:26:42 +0200 |
---|---|---|
committer | Carsten Teibes | 2014-08-20 21:26:42 +0200 |
commit | f4e4688593cca2673f9d83a04176703731f750e7 (patch) | |
tree | 508e6ff8e96650b8f2638d93f6a76af90eadf941 | |
download | aur-f4e4688593cca2673f9d83a04176703731f750e7.tar.gz |
[add] last-mission-sdl-git
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..25720e8d1879 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = last-mission-sdl-git + pkgdesc = Side-view arcade game (inspired by Underwurlde and Starquake, development version) + pkgver = r25.00d2625 + pkgrel = 1 + url = https://github.com/dmitrysmagin/last-mission + arch = i686 + arch = x86_64 + license = GPL + depends = sdl_mixer + provides = last-mission-sdl + conflicts = last-mission-sdl + source = last-mission-sdl::git+https://github.com/dmitrysmagin/last-mission.git + md5sums = SKIP + +pkgname = last-mission-sdl-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..97b4eab5abea --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG + +pkgname=last-mission-sdl-git +pkgver=r25.00d2625 +pkgrel=1 +pkgdesc='Side-view arcade game (inspired by Underwurlde and Starquake, development version)' +arch=('i686' 'x86_64') +url="https://github.com/dmitrysmagin/last-mission" +license=('GPL') +depends=('sdl_mixer') +conflicts=("${pkgname%-*}") +provides=("${pkgname%-*}") +source=(${pkgname%-*}::"git+https://github.com/dmitrysmagin/last-mission.git") +md5sums=('SKIP') + +pkgver() { + cd ${pkgname%-*} + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd ${pkgname%-*} + # change data directory + sed "s|\"sound/|\"/usr/share/${pkgname%-*}/sound/|g" -i sound.c + + # add define and lib to fix build and add our build flags + sed 's|CFLAGS =\(.*\)|CFLAGS +=\1|;s|$(LFLAGS)|$(LDFLAGS) & -lm|' -i Makefile +} + +build() { + make -C ${pkgname%-*} +} + +package() { + cd ${pkgname%-*} + + # binary + install -Dm755 ${pkgname%-*} "$pkgdir"/usr/bin/${pkgname%-*} + # data + install -d "$pkgdir"/usr/share/${pkgname%-*}/sound + install -m644 sound/*.ogg "$pkgdir"/usr/share/${pkgname%-*}/sound + # doc + install -d "$pkgdir"/usr/share/doc/${pkgname%-*} + install -m644 *.txt "$pkgdir"/usr/share/doc/${pkgname%-*} +} |