summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3477307ddecf790eee79ff4c74e0e880b1090b47 (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
34
35
36
37
38
39
40
# Maintainer: Rafał Kozdrój <kozeid2@gmail.com>
# Contributor: Thomas Schneider <maxmusterm@gmail.com>
# Contributor: prettyvanilla <prettyvanilla@posteo.at>
# Contributor: almostalive   <almostalive2003 at gmail dot com>

_gitname=nxengine-libretro
_libname=nxengine_libretro
_pkgname=libretro-nxengine

pkgname=${_pkgname}-git
pkgver=r501.f3050ba
pkgrel=1
pkgdesc="libretro implementation of NXEngine. (Cave Story)"
arch=('x86_64')
url="https://github.com/libretro/${_gitname}"
license=('GPL3')
depends=('gcc-libs' 'glibc' 'libretro-core-info')
makedepends=('git')
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
install=$pkgname.install
source=("git+${url}.git")
md5sums=('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"

  mkdir -p "${pkgdir}/usr/share/libretro/${_libname}"
  cp -a "${_gitname}/datafiles" "${pkgdir}/usr/share/libretro/${_libname}"
}