1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
6 pkgdesc="A terminal-based Tetris clone with 2-player mode."
8 url="http://victornils.net/tetris"
13 source=(http://victornils.net/tetris/$pkgname-$pkgver.tar.gz \
14 $pkgname-makefile.diff)
15 md5sums=('07d02ee03e2edd66a8741729e237f21f'
16 '5510adbb8ff3153466aa58c90d5765d8')
19 cd ${srcdir}/$pkgname-$pkgver
21 patch -Np0 -i ${srcdir}/$pkgname-makefile.diff || return 1
23 #can be built without ncurses if you like
24 ./configure --prefix=${pkgdir}/usr --docdir=${pkgdir}/usr/share/$pkgname --without-x --with-ncurses || return 1
26 make gameserver || return 1
27 make install || return 1
28 install -D -m755 gameserver ${pkgdir}/usr/bin/$pkgname-gameserver || return 1
30 #add a high score file:
31 install -d -m775 ${pkgdir}/var/games/
32 install -D -g games -m664 /dev/null ${pkgdir}/var/games/vitetris/hiscores || return 1
35 install -D -m644 licence.txt ${pkgdir}/usr/share/licenses/$pkgname/LICENSE || return 1