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

pkgname=gambatte-qt-git
_gitname="gambatte"
pkgver=f3c548d
pkgrel=1
pkgdesc="A Qt4 frontend for the Gambatte emulator"
arch=('i686' 'x86_64')
url="https://github.com/sinamas/gambatte"
license=('GPL')
depends=('qt4' 'libgl' 'alsa-lib' 'gambatte-git')
optdepends=()
makedepends=('git' 'make')
provides=('gambatte-qt')
conflicts=('gambatte-qt')
source=('git://github.com/sinamas/gambatte.git'
        $pkgname.desktop
        compil.patch)
md5sums=('SKIP'
          'd74be9dbb91c6b517099f5f1dc46c88e'
         'e2439ad2809741d89092e8a48d7ef549')

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

build() {
  cd "$_gitname"

  cd "gambatte_qt/"
  
  patch -p1 < ../../../compil.patch

  qmake-qt4 gambatte_qt.pro
  make || return 1
}

package() {

  cd "$_gitname"
  
  install -Dm755 gambatte_qt/bin/gambatte_qt "$pkgdir"/usr/bin/gambatte-qt
  install -Dm644 "$srcdir"/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
}

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