summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Adam2015-07-05 11:51:13 +0200
committerJens Adam2015-07-05 11:51:13 +0200
commit369394214c229a3d2463e5dfb46664bf3b77498c (patch)
tree4d8b787d065595e1e24a63c0fab02ea534dc78ec
downloadaur-369394214c229a3d2463e5dfb46664bf3b77498c.tar.gz
Initial import
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD39
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9eee3747a49
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = bastet
+ pkgdesc = Tetris(r) clone with 'bastard' block-choosing AI
+ pkgver = 0.43.1
+ pkgrel = 1
+ url = http://fph.altervista.org/prog/bastet.html
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = boost
+ depends = boost-libs
+ depends = ncurses
+ backup = var/games/bastet.scores2
+ source = https://github.com/fph/bastet/archive/0.43.1.zip
+ md5sums = 8d0a325d0c94fbb921d6a46f574f3a87
+
+pkgname = bastet
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..02a5167f607
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Jens Adam <jra@byte.cx>
+
+pkgname=bastet
+pkgver=0.43.1
+pkgrel=1
+pkgdesc="Tetris(r) clone with 'bastard' block-choosing AI"
+url="http://fph.altervista.org/prog/bastet.html"
+license=('GPL3')
+arch=('i686' 'x86_64')
+depends=('boost-libs' 'ncurses')
+makedepends=('boost')
+backup=('var/games/bastet.scores2')
+source=("https://github.com/fph/bastet/archive/${pkgver}.zip")
+md5sums=('8d0a325d0c94fbb921d6a46f574f3a87')
+
+build() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+ make
+}
+
+package() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+
+ # populate files
+ install -D bastet "${pkgdir}"/usr/bin/bastet
+ install -Dm644 bastet.6 "${pkgdir}"/usr/share/man/man6/bastet.6
+ install -Dm644 bastet.desktop "${pkgdir}"/usr/share/applications/bastet.desktop
+ install -Dm644 bastet.appdata.xml "${pkgdir}"/usr/share/appdata/bastet.appdata.xml
+ for F in AUTHORS INSTALL NEWS README; do
+ install -Dm644 ${F} "${pkgdir}"/usr/share/doc/bastet/${F}
+ done
+
+ # prepare the (optional) global highscore file
+ # (users need to be in 'games' group, obviously)
+ install -dm775 -g games "${pkgdir}"/var/games
+ touch "${pkgdir}"/var/games/bastet.scores2
+ chmod 664 "${pkgdir}"/var/games/bastet.scores2
+ chown root:games "${pkgdir}"/var/games/bastet.scores2
+}