
AUR Paste
By: a guest on
Jan 1st, 2011 | syntax:
Bash | size: 1.58 KB | views:
62 | expires: Never
pkgname=ufo2000
pkgver=0.9.1142
pkgrel=1
pkgdesc="A free and opensource turn based tactical squad simulation multiplayer game. It is heavily inspired by the famous X-COM: UFO Defense game."
arch=('i686')
url="http://ufo2000.sourceforge.net/"
license=('gpl')
groups=()
depends=('allegro<4.9' dumb-old sdl hawknl expat zlib freetype2 libvorbis)
makedepends=()
install=ufo2000.install
source=(http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.bz2 ufo2000.png ufo2000.desktop ufo2000.sh makefile.patch)
noextract=()
md5sums=('fdb45e083d3356d297db4eb8c5b1f8d4'
'c39fa2f286591497a25e11811ddf8585'
'4ea21d2eb5983f2f29efa7e3c7c9eb23'
'ab63d2b1cda650bfdda5089fa471f806'
'69f179087bec0b07a9485114d7137568')
build() {
cd $startdir/src/$pkgname-$pkgver/
#patching makefile since it ignores CFLAGS and sets it from scratch
patch -p1 < $srcdir/makefile.patch
# Building
make || return 1
}
package(){
mkdir -p $startdir/pkg/usr/{bin,share/applications,share/pixmaps}
install -D -m755 $startdir/src/ufo2000.sh $startdir/pkg/usr/bin/ufo2000
install -D -m644 $startdir/src/ufo2000.png $startdir/pkg/usr/share/pixmaps/ufo2000.png
install -D -m644 $startdir/src/ufo2000.desktop $startdir/pkg/usr/share/applications/ufo2000.desktop
mkdir -p $startdir/pkg/opt/$pkgname
cd $startdir/src/$pkgname-$pkgver
cp -r arts/ datfile/ docs/ extensions/ fonts/ init-scripts/ newmusic/ newunits/ script/ TFTD/ translations/ XCOM/ AUTHORS COPYING HACKING *.dat readme_*.txt *.html *.xml *.lua ufo2000 *.conf ufo2000.default.ini $startdir/pkg/opt/$pkgname
}