summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7fed1d93e50fb6564586db21ec33d841d2c39ad3 (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: Oliver Jaksch <arch-aur@com-in.de>

pkgname=libretro-pcem-git
pkgver=152.89b3516
pkgrel=2
pkgdesc="Libretro port of PCem, based on mooch's personal fork of PCem, based on OBattler's experimental branch"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="https://github.com/libretro/libretro-pcem"
license=('GPL2')
groups=('libretro')
depends=('zlib' 'allegro4' 'openal' 'freealut')
makedepends=('git')

_libname=pcem_libretro
_gitname=libretro-pcem
source=("git+https://github.com/libretro/${_gitname}.git")
sha256sums=('SKIP')

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

build() {
  cd "${_gitname}/src"
  make -f Makefile.libretro
}

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