summaryrefslogtreecommitdiff
path: root/community/abe/PKGBUILD
blob: 9f646794f8e32da54c977635a1f8435d9718ac87 (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
33
34
35
36
37
38
39
40
41
42
# Maintainer: jsteel <mail at jsteel dot org>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=abe
pkgver=1.1
pkgrel=9
pkgdesc="A scrolling, platform-jumping, key-collecting, ancient pyramid exploring game"
arch=('i686' 'x86_64')
url="http://abe.sourceforge.net"
license=('GPL')
depends=('sdl_mixer')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
        $pkgname.patch
        $pkgname.desktop)
md5sums=('5537920e1746708e1a631d84d3500f5c'
         '74802a45e21b59d3e3d34f35ade252a4'
         '6ff678e781290bff780da154a32b9767')

build() {
  cd "$srcdir"/$pkgname-$pkgver

  patch -Np1 -i "$srcdir"/$pkgname.patch

  ./configure --prefix=/usr

  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver

  make DESTDIR="$pkgdir" install

  install -Dm644 "$srcdir"/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
  install -dm755 "$pkgdir"/usr/share/$pkgname/images

  cp -r images/ maps/ sounds/ "$pkgdir"/usr/share/$pkgname/

  cd "$pkgdir"/usr/share/$pkgname/images
  tar -xf "$srcdir"/$pkgname-$pkgver/images/images.tar abe.bmp
  chown root:root abe.bmp
}