summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b75e78908c8086b99d2b018bf6fdfda899b305c (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
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Jose Riha <jose1711 gmail com>
# Contributor: Cravix < dr dot neemous at gmail dot com >
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>

pkgname=freegish-git
_pkgname=freegish
pkgver=1.60.219.0ab2e82
pkgrel=1
pkgdesc="Free version of gish, a physics platformer"
arch=('x86_64' 'i686')
url="http://github.com/freegish/freegish"
license=('GPL')
depends=('sdl' 'openal' 'libvorbis' 'libpng' 'libgl')
makedepends=('git' 'cmake')
provides=('freegish')
conflicts=('freegish')
install=freegish.install

source=("git+https://github.com/${_pkgname}/${_pkgname}"
        'freegish.desktop'
        'cmakelists.patch')

md5sums=('SKIP'
         '45a57af69e7e6becdac80ed85d87f871'
         'ff6e826443f1c6ef3a9813bd7a09f88a')

pkgver() {
  cd "$srcdir/$_pkgname"
  echo 1.60.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

prepare() {
  cd "$srcdir/$_pkgname"

  patch -p2 < $srcdir/cmakelists.patch
}

build() {
  cd "$srcdir/$_pkgname"
  mkdir -p build
  cd build
  cmake .. -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd "$srcdir/$_pkgname"
  cd build
  make install DESTDIR="$pkgdir"

  cd "$srcdir/$_pkgname"
  cp -r music "$pkgdir/usr/share/$_pkgname"
}

# vim: sw=2:ts=2 et: