summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dbaf48944bf30127f712bda716f5077e7b62b3e0 (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
# Maintainer: BrainDamage

pkgname=libretro-reicast-git
pkgver=2261.e622b36
pkgrel=2
pkgdesc="libretro implementation of Reicast Sega Dreamcast Emulator"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="https://github.com/libretro/reicast-emulator"
license=('GPL' 'LGPL')
makedepends=('git')
depends=('libgl' 'alsa-lib')
source=("git://github.com/libretro/reicast-emulator.git"
	"https://raw.github.com/libretro/libretro-super/master/dist/info/reicast_libretro.info")

md5sums=('SKIP' 'SKIP')

pkgver() {
  cd "${srcdir}/reicast-emulator"
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd "${srcdir}/reicast-emulator"
  make
}

package() {
  install -Dm644 "${srcdir}/reicast_libretro.info" "${pkgdir}/usr/lib/libretro/reicast_libretro.info"
  install -Dm644 "${srcdir}/reicast-emulator/reicast_libretro.so" "${pkgdir}/usr/lib/libretro/reicast_libretro.so"
}