updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / smw / PKGBUILD
blob8211499cb8fc96d88be3e282ea650e2820ec8815
1 # Contributor: Evangelos Foutras <evangelos@foutrelis.com>
3 pkgname=smw
4 pkgver=1.7.afe
5 pkgrel=3
6 pkgdesc="A Super Mario multiplayer game"
7 arch=('i686' 'x86_64')
8 url="http://smw.72dpiarmy.com/"
9 license=('GPL2')
10 depends=('gcc-libs' 'sdl_mixer' 'sdl_image' 'desktop-file-utils')
11 makedepends=('bin86')
12 install=smw.install
13 source=(http://www.fileden.com/files/2007/9/11/1425938/$pkgname-1.7afe-src.zip
14         $pkgname.desktop
15         $pkgname.png
16         gcc43.patch)
17 md5sums=('9dff7aa6d1ec9e3b08e4b8a75932dd1f'
18          '78b87b9c99c232ecc9f659a4994da12b'
19          'b7f5ef181e41eb0339be746ea03ff628'
20          '741167ac89de09fb362b5efd98069cd1')
22 build() {
23   cd "$srcdir/${pkgname}1.7afe"
25   patch -p1 -i "$srcdir/gcc43.patch" || return 1
26   sed -i 's/\r//g' configure
28   ./configure
29   make || return 1
30   make DESTDIR="$pkgdir" install
32   # Set sane permissions
33   find "$pkgdir/usr/share/$pkgname" -type d -exec chmod 755 {} \;
34   find "$pkgdir/usr/share/$pkgname" -type f -exec chmod 644 {} \;
36   # Install application shortcut and icon
37   install -D -m644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
38   install -D -m644 "$srcdir/$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"