updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / openglad / PKGBUILD
blobb65b2c6b779fbe1be0dfa381c10de9aa3a8d1ed0
1 # Maintainer: Jynko <jayson at it-linux dot com>
2 # Contributor: Callan Barrett <wizzomafizzo@gmail.com>
5 pkgname=openglad
6 pkgver=0.98
7 pkgrel=2
8 pkgdesc="SDL port of an old DOS game called Gladiator"
9 arch=(i686)
10 url="http://snowstorm.sourceforge.net/"
11 license=('GPL')
12 depends=('sdl_mixer')
13 source=(http://sourceforge.net/projects/snowstorm/files/OpenGlad/Openglad-0.98/$pkgname-$pkgver.tar.gz/download
14         openglad_48x48.png
15         openglad.desktop
16         cfix.patch)
18 md5sums=('e211c0ba876a75215dd99f7925783ea4'
19          '2783d3a5742957e42e3ca79f9161658b'
20          '57e172d99a2ed4d2fe85b05707fe90eb'
21          '43ea59144fe0d3a9af1d6ad8a2b63a1f') 
23 build() {
24   # Desktop icons
25   install -Dm644 openglad_48x48.png $pkgdir/usr/share/pixmaps/openglad_48x48.png
26   install -Dm644 openglad.desktop $pkgdir/usr/share/applications/openglad.desktop       
27   install -Dm644 $srcdir/$pkgname-$pkgver/COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
29   cd $srcdir/$pkgname-$pkgver
30   patch -p0 < ../../cfix.patch
31   ./configure --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/openglad
32   make || return 1
33   make DESTDIR=$pkgdir install