summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c57161479539ac261f08211edcd0dd2c210df18 (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
# Maintainer: Vaporeon <vaporeon@vaporeon.io>
pkgname=punes-git
pkgver=r1103.d23cc6bc
pkgrel=1
pkgdesc="Nintendo Entertaiment System emulator"
arch=('i686' 'x86_64')
url="http://forums.nesdev.com/viewtopic.php?t=6928"
license=('GPL2')
depends=('qt5-base' 'qt5-svg' 'alsa-lib' 'hicolor-icon-theme' 'desktop-file-utils' 'nvidia-cg-toolkit')
makedepends=('automake' 'git' 'qt5-tools')
conflicts=('punes')
provides=('punes')
source=("git+https://github.com/punesemu/puNES.git")
md5sums=('SKIP')

pkgver() {
  cd puNES
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/puNES"
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/puNES"
  make DESTDIR="$pkgdir" install
  #idk what the deal with this mimeinfo cache is, it seems to come and go
  rm -f "$pkgdir"/usr/share/applications/mimeinfo.cache
}