# Maintainer: Ian D. Scott # Maintainer: kfgz # Contributor: damir pkgname=corewars pkgver=0.9.13 pkgrel=1 pkgdesc="Simulation game where a number of programs try to crash each other" arch=('i686' 'x86_64') url="http://sourceforge.net/projects/corewars/" license=('GPL2') depends=('gtk2') source=(${pkgname}-${pkgver}.tar.gz::http://sourceforge.net/projects/${pkgname}/files/${pkgname}%20%28stable%2C%20tar.gz%29/${pkgver}/${pkgname}-${pkgver}.tar.gz/download http://sourceforge.net/p/corewars/patches/_discuss/thread/947a192c/b4cd/attachment/corewars-gtk2.patch.gz) md5sums=('0a0b8067533b83a96488109ee265f664' '557e1601a94f76862014c271b4e06d8f') prepare() { cd "${srcdir}/${pkgname}-${pkgver}" zcat ../corewars-gtk2.patch.gz | patch -p1 sed -i 's/LIBS="$LIBS $GTK_LIBS"/LIBS="-lm $LIBS $GTK_LIBS"/' configure.ac } build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr --mandir=/usr/share/man make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install }