summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b9acd75995c38f335aaaf366127b5e3ac31d42e (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
# Maintainer:  Lukas Sabota <lukas@lwsabota.com>

_libname=fmsx_libretro
_gitname=fmsx-libretro
pkgname=libretro-fmsx-git
pkgver=r123.8ca1dca
pkgrel=1
pkgdesc="fMSX libretro core (Microsoft MSX)."
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="https://github.com/libretro/fmsx-libretro"
license=('custom')
groups=('libretro')
depends=('zlib')
makedepends=('git')
groups=('libretro')
source=("git+https://github.com/libretro/${_gitname}.git" "https://raw.github.com/libretro/libretro-super/master/dist/info/${_libname}.info")
md5sums=('SKIP' 'SKIP')

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

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

package() {
	install -Dm644 "${_gitname}/${_libname}.so" "${pkgdir}/usr/lib/libretro/${_libname}.so"
}