# Maintainer: Jaroslav Lichtblau # Contributor: flu # Contributor: Kevin MacMartin pkgname=vitetris pkgver=0.58.0 pkgrel=1 pkgdesc="Virtual terminal *tris clone" arch=('i686' 'x86_64') url="http://victornils.net/tetris" license=('BSD') depends=('ncurses') makedepends=('patch') options=('!makeflags') source=($pkgname-$pkgver.tar.gz::https://github.com/vicgeralds/$pkgname/archive/v$pkgver.tar.gz $pkgname-makefile.patch $pkgname.tmpfiles.conf) sha256sums=('e7e7cb74bb814b9fec80fe4ede3c3f04134d8217d630e092a097238248d604f9' '2a9e1ea8daf42b833719c2fa1098f9e9c6259b8e077ca387eecd9a2ee54cc8af' '898c741a41defccd6b38fe3a5b97fb84d5656b2c9df05c79196ac1bf2151ba7d') 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 }