summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 16bb84c7d9dce72d86e841d20904c3522800a325 (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
# Maintainer: Thomas Schneider <maxmusterm@gmail.com>

pkgname=libretro-gpsp-git
_gitname=gpsp
pkgver=807.4caf7a1
pkgrel=1
pkgdesc="libretro implementation of gpsp"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
groups=('libretro')
url="https://github.com/libretro/gpsp"
license=('custom' 'GPL' 'LGPL')
makedepends=('git')

source=("${_gitname}::git+https://github.com/libretro/${_gitname}.git"
	"https://raw.github.com/libretro/libretro-super/master/dist/info/gpsp_libretro.info")
md5sums=('SKIP'
	 'SKIP')

pkgver() {
  cd "${_gitname}"
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd "${_gitname}"
  make
}

package() {
  install -Dm644 "${srcdir}/gpsp_libretro.info" "${pkgdir}/usr/share/libretro/info/libretro-gpsp.info"
  install -Dm644 "${_gitname}/gpsp_libretro.so" "${pkgdir}/usr/lib/libretro/libretro-gpsp.so"
}