summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 49ed0e7766ca325a35d5cc3203e6d2dce75ca67e (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:  Oliver Jaksch <arch-aur at com-in dot de>

pkgname=libretro-beetle-pce-fast-git
pkgver=1116.ec4fe57
pkgrel=1
pkgdesc='Standalone port of Mednafen PCE Fast to libretro.'
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url='https://github.com/libretro/beetle-pce-fast-libretro'
license=('GPL2')
groups=('libretro')
depends=('gcc-libs' 'libretro-core-info')
makedepends=('git')
replaces=('libretro-mednafen-pce-fast-git')

_libname=mednafen_pce_fast_libretro
_gitname=beetle-pce-fast-libretro
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}"
  make
}

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