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

pkgname=libretro-cannonball-git
pkgver=342.0f3566a
pkgrel=1
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
pkgdesc="libretro version of Cannonball - An Enhanced OutRun Engine"
url="https://github.com/libretro/cannonball"
license=('custom')
groups=('libretro')
depends=('zlib' 'glibc' 'libretro-core-info' 'cmake' 'mesa' 'sdl')
makedepends=('git' 'boost-libs')

_libname=cannonball_libretro
_gitname=cannonball
source=("git+https://github.com/libretro/${_gitname}.git"
	"https://raw.githubusercontent.com/libretro/libretro-super/master/dist/info/${_libname}.info")
sha256sums=('SKIP'
	'SKIP')

pkgver() {
  cd "${_gitname}"
  echo $(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"
  install -Dm644 "${_libname}.info" "${pkgdir}/usr/share/libretro/info/${_libname}.info"
  msg2 "\e[1;32mPlease have a look at https://github.com/djyt/cannonball/blob/master/roms/roms.txt"
  msg2 "\e[1;32mto find out which roms are needed."
  msg2 "\e[1;32mAlso, create a file 'outrun.game' somewhere (ie in your roms directory) and"
  msg2 "\e[1;32mname that file as a parameter to retroarch (see corresponding .info file also). \e[0m"
}