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

pkgname=libretro-cannonball-git
pkgver=361.749489c
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")
sha256sums=('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"
  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"
}