From 3f4c117cef63b425066df2d9807b108041b45ec8 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 17 Nov 2014 16:38:04 +0100 Subject: vitetris: Import package --- PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 PKGBUILD (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..19ee809 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +pkgname=vitetris +pkgver=0.57 +pkgrel=2 + +pkgdesc="A terminal-based Tetris clone with 2-player mode" +url="http://victornils.net/tetris" +arch=('i686' 'x86_64') +license=('BSD') + +depends=('ncurses') +makedepends=('patch') + +options=('!makeflags') + +install=$pkgname.install + +source=(http://victornils.net/tetris/vitetris-$pkgver.tar.gz + vitetris-makefile.patch + vitetris.tmpfiles.conf) + +md5sums=('07d02ee03e2edd66a8741729e237f21f' + '23be30294af1dbc43c594a8b737091c8' + 'c4c6a6d4250c0aa3bbf3c4a7d911fa1c') + +prepare() { + cd vitetris-${pkgver} + patch -Np1 -i "$srcdir"/vitetris-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 vitetris-$pkgver + + ./configure --prefix="$pkgdir"/usr --docdir="$pkgdir"/usr/share/vitetris --without-x --with-ncurses + make + make gameserver +} + +package() { + install -Dm644 vitetris.tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/vitetris.conf + + cd vitetris-$pkgver + make install + install -Dm755 gameserver "$pkgdir"/usr/bin/vitetris-gameserver + + install -Dm644 licence.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} -- cgit v1.2.3-70-g09d2