summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69f5f63e59a33a6f0473b3a59ae37060841a659f (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
# Maintainer: Frederic Bezies < fredbezies at gmail dot com >
# Contributor: schuay <jakob.gruber@gmail.com>
 
pkgname=pacman_sdl-ebuc99-git
_pkgbase=pacman
pkgver=v0.9.r32.gcc86367
pkgdesc="Pacman clone using SDL. Guide Pacman through a maze and collect pac-dots while 
avoiding ghosts. (ebuc99 fork)"
pkgrel=1
arch=('i686' 'x86_64')
url="http://github.com/ebuc99/pacman/"
license=('GPL2')
source=("git+https://github.com/ebuc99/pacman.git"
        'extra_life.patch')
depends=('sdl2_ttf' 'sdl2_mixer' 'sdl2_image')
makedepends=('boost')
sha256sums=('SKIP'
            'a0e58a6ca3294c4c6fe8e2c8222430889286bc2b0d8046ed3a13febbcb7ff413')

pkgver() {
  cd $_pkgbase
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd ${srcdir}/$_pkgbase
  patch -p1 -i ${srcdir}/extra_life.patch
  ./configure 
  make
}
package() {
  cd ${srcdir}/$_pkgbase
  make DESTDIR=${pkgdir} install
  mv ${pkgdir}/usr/local/bin/pacman{,_sdl}
  sed -e 's/Exec=pacman/Exec=pacman_sdl/g' \
  -i ${pkgdir}/usr/local/share/applications/pacman.desktop
}