diff options
author | Carsten Teibes | 2014-08-20 21:26:42 +0200 |
---|---|---|
committer | Carsten Teibes | 2014-08-20 21:26:42 +0200 |
commit | 985d5096b133d98ee79e637c5837d7356bee9dd8 (patch) | |
tree | 71688e05ded53291f3eeb136ac6f93fcc39041f5 | |
download | aur-985d5096b133d98ee79e637c5837d7356bee9dd8.tar.gz |
[add] last-mission-sdl 0.8
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..796864ece8ac --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = last-mission-sdl + pkgdesc = Side-view arcade game (inspired by Underwurlde and Starquake) + pkgver = 0.8 + pkgrel = 1 + url = https://github.com/dmitrysmagin/last-mission + arch = i686 + arch = x86_64 + license = GPL + depends = sdl_mixer + source = last-mission-sdl-0.8.tar.gz::https://github.com/dmitrysmagin/last-mission/archive/81cb1b45aa2e24e088440910bb764d5daa6f5028.tar.gz + sha256sums = 1acf05deb0efe14abf7cea92dd62fe5c67de817c4eda4ba296f4c6bb9e1deb3d + +pkgname = last-mission-sdl + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..92b111063f5c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG + +pkgname=last-mission-sdl +pkgver=0.8 +_githash=81cb1b45aa2e24e088440910bb764d5daa6f5028 # this is needed as there are no tags +pkgrel=1 +pkgdesc='Side-view arcade game (inspired by Underwurlde and Starquake)' +arch=('i686' 'x86_64') +url="https://github.com/dmitrysmagin/last-mission" +license=('GPL') +depends=('sdl_mixer') +source=($pkgname-$pkgver.tar.gz::"https://github.com/dmitrysmagin/last-mission/archive/$_githash.tar.gz") +sha256sums=('1acf05deb0efe14abf7cea92dd62fe5c67de817c4eda4ba296f4c6bb9e1deb3d') + +prepare() { + cd last-mission-$_githash + # change data directory + sed "s|sound/|/usr/share/$pkgname/&|g" -i sound.c + # add define and lib to fix build and add our build flags + sed 's|CFLAGS =\(.*\)|CFLAGS += -D__UNIX__ \1|;s|$(LFLAGS)|$(LDFLAGS) & -lm|' -i Makefile +} + +build() { + make -C last-mission-$_githash +} + +package() { + cd last-mission-$_githash + + # 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 +} |