summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce7d1391048b8113df772f65be747cdca810c7bd (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
# Maintainer: Cedric Mathieu <me.xenom[at]gmail.com>

pkgname=gambatte-git
_gitname="gambatte"
pkgver=f3c548d
pkgrel=1
pkgdesc="An accuracy-focused Game Boy Color emulator"
arch=('i686' 'x86_64')
url="https://github.com/sinamas/gambatte"
license=('GPL')
depends=('gcc-libs' 'sdl' 'zlib')
optdepends=('gambatte-qt: Qt4 frontend')
makedepends=('git' 'scons')
provides=('gambatte')
conflicts=('gambatte')
source=('git://github.com/sinamas/gambatte.git')
md5sums=('SKIP')


pkgver() {
  cd "$_gitname"
  git describe --always | sed 's|-|.|g'
}



build() {
  cd "$_gitname"

  for i in libgambatte gambatte_sdl; do
    cd $i
    scons CXXFLAGS="${CXXFLAGS}" || return 1
    cd ..
  done
}

package() {

  cd "$_gitname"

  install -Dm755 gambatte_sdl/gambatte_sdl "$pkgdir"/usr/bin/gambatte
  install -Dm644 libgambatte/libgambatte.a "$pkgdir"/usr/lib/libgambatte.a
}

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