summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: edda16b47d1eb82fcf0109595ea5e9fb5e538ce7 (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
# Maintainer: Viachaslau Khalikin <khalikin@yandex.by>
# Maintainer: Oliver Jaksch <arch-aur at com-in dot de>

_pkgbase=libretro-freeintv
pkgname=${_pkgbase}-git
pkgver=r203.0058a09
pkgrel=1
pkgdesc="A libretro emulation core for the Mattel Intellivision designed to be compatible with joypads from the SNES era forward"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="https://github.com/libretro/FreeIntv"
license=('GPL' 'custom:zlib')
groups=('libretro')
depends=(
  glibc
  libretro-core-info
)
makedepends=(
  git
)
install="${pkgname}".install
source=("$_pkgbase::git+$url.git")
sha512sums=('SKIP')

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

build() {
  make -C "${_pkgbase}"
}

package() {
  install -Dm 644 "${_pkgbase}"/freeintv_libretro.so  -t "${pkgdir}"/usr/lib/libretro/
  install -Dm 644 "${_pkgbase}"/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}

# vim:set ft=sh ts=2 sw=2 et: