summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Lichtblau2014-11-28 20:17:14 +0100
committerJaroslav Lichtblau2014-11-28 20:17:14 +0100
commit2628e1489888aaf21189cfa08b4d58d4e85e1aa4 (patch)
tree70db11b179d8842b8bb9be4e09e5201fcabf138a
downloadaur-2628e1489888aaf21189cfa08b4d58d4e85e1aa4.tar.gz
Initial PKGBUILD status as of 28.11.2014
-rw-r--r--.AURINFO18
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD48
-rw-r--r--vitetris-makefile.patch14
-rw-r--r--vitetris.install7
-rw-r--r--vitetris.tmpfiles.conf2
6 files changed, 110 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 00000000000..a5fe76cddcf
--- /dev/null
+++ b/.AURINFO
@@ -0,0 +1,18 @@
+pkgbase = vitetris
+ pkgdesc = A terminal-based Tetris clone with 2-player mode
+ pkgver = 0.57
+ pkgrel = 2
+ url = http://victornils.net/tetris
+ install = vitetris.install
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = patch
+ depends = ncurses
+ source = http://victornils.net/tetris/vitetris-0.57.tar.gz
+ source = vitetris-makefile.patch
+ source = vitetris.tmpfiles.conf
+ options = !makeflags
+
+pkgname = vitetris
+
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..518b3dba9dc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = vitetris
+ pkgdesc = A terminal-based Tetris clone with 2-player mode
+ pkgver = 0.57
+ pkgrel = 2
+ url = http://victornils.net/tetris
+ install = vitetris.install
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = patch
+ depends = ncurses
+ options = !makeflags
+ source = http://victornils.net/tetris/vitetris-0.57.tar.gz
+ source = vitetris-makefile.patch
+ source = vitetris.tmpfiles.conf
+ md5sums = 07d02ee03e2edd66a8741729e237f21f
+ md5sums = 23be30294af1dbc43c594a8b737091c8
+ md5sums = c4c6a6d4250c0aa3bbf3c4a7d911fa1c
+
+pkgname = vitetris
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ba9eeabcf88
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# Contributor: flu
+# Contributor: Kevin MacMartin <prurigro at gmail dot com>
+
+pkgname=vitetris
+pkgver=0.57
+pkgrel=2
+pkgdesc="A terminal-based Tetris clone with 2-player mode"
+arch=('i686' 'x86_64')
+url="http://victornils.net/tetris"
+license=('BSD')
+depends=('ncurses')
+makedepends=('patch')
+options=('!makeflags')
+install=$pkgname.install
+source=(http://victornils.net/tetris/${pkgname}-${pkgver}.tar.gz
+ $pkgname-makefile.patch
+ $pkgname.tmpfiles.conf)
+md5sums=('07d02ee03e2edd66a8741729e237f21f'
+ '23be30294af1dbc43c594a8b737091c8'
+ 'c4c6a6d4250c0aa3bbf3c4a7d911fa1c')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -Np1 -i "${srcdir}"/${pkgname}-makefile.patch
+
+# Change configuration file to a standard one:
+ sed -i 's|#define CONFIG_FILENAME ".vitetris"|#define CONFIG_FILENAME ".config/vitetris"|' src/config2.h
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ ./configure --prefix="${pkgdir}"/usr --docdir="${pkgdir}"/usr/share/${pkgname} --without-x --with-ncurses
+ make
+ make gameserver
+}
+
+package() {
+ install -Dm644 ${pkgname}.tmpfiles.conf "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
+
+ cd ${pkgname}-${pkgver}
+ make install
+ install -Dm755 gameserver "${pkgdir}"/usr/bin/${pkgname}-gameserver
+
+# License
+ install -Dm644 licence.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
diff --git a/vitetris-makefile.patch b/vitetris-makefile.patch
new file mode 100644
index 00000000000..5c7fd31a3e1
--- /dev/null
+++ b/vitetris-makefile.patch
@@ -0,0 +1,14 @@
+--- a/Makefile.orig
++++ b/Makefile
+@@ -3 +3 @@
+-PROGNAME = tetris$(EXE)
++PROGNAME = vitetris$(EXE)
+@@ -6 +6 @@
+-#HISCORE_FILENAME = /var/games/vitetris-hiscores
++HISCORE_FILENAME = /var/games/vitetris/hiscores
+@@ -59 +59 @@
+- $(INSTALL) -m644 README licence.txt $(DESTDIR)$(docdir)
++ $(INSTALL) -m644 README $(DESTDIR)$(docdir)
+@@ -75 +75 @@
+- if [ -z "$$HS_FN" ]; then HS_FN=/var/games/vitetris-hiscores; fi; \
++ if [ -z "$$HS_FN" ]; then HS_FN=/var/games/vitetris/hiscores; fi; \
diff --git a/vitetris.install b/vitetris.install
new file mode 100644
index 00000000000..ddf9c60d9a7
--- /dev/null
+++ b/vitetris.install
@@ -0,0 +1,7 @@
+post_install() {
+ systemd-tmpfiles --create vitetris.conf
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/vitetris.tmpfiles.conf b/vitetris.tmpfiles.conf
new file mode 100644
index 00000000000..5200be0577f
--- /dev/null
+++ b/vitetris.tmpfiles.conf
@@ -0,0 +1,2 @@
+d /var/games/vitetris 0775 root games -
+f /var/games/vitetris/hiscores 0664 root games -