summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9171fc8aeebba6fdf7526ba79f554cb411c155fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Ian D. Scott <ian@iandouglasscott.com>
# Maintainer: kfgz <kfgz at interia dot pl>
# Contributor: damir <damir at archlinux dot org>

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
}