summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e24fda247da2d8641c18ccabb62a4428bd2633e6 (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:  Oliver Jaksch <arch-aur at com-in dot de>

pkgname=libretro-atari800-git
pkgver=164.b59fb7e
pkgrel=1
pkgdesc="libretro implementation of Atari800 v3.1.0 (Atari 5200/400/800/XL/XE) (WIP)"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="https://github.com/libretro/libretro-atari800"
license=('GPL2')
groups=('libretro')
depends=('zlib' 'glibc' 'libretro-core-info')
makedepends=('git')

_libname=atari800_libretro
_gitname=libretro-atari800
source=("git+https://github.com/libretro/${_gitname}.git"
	"cfg.patch"
	"joycfg.patch")
sha256sums=('SKIP'
	'41e0c608d07cdc3228d37a7a29fd40b6629e964c13d14ba413fa84e956ef3777'
	'd30794556b622c757dbafb5ce988547967004bd2d779c74e28802f9dd78a167f')

pkgver() {
  cd "${_gitname}"
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd ${_gitname}
  git submodule init
  git submodule update
  # rename config file to not interfere with original atari800
  patch -p0 < "../cfg.patch"
  patch -p0 < "../joycfg.patch"
  make -f Makefile
}

package() {
  install -Dm644 "${_gitname}/${_libname}.so" "${pkgdir}/usr/lib/libretro/${_libname}.so"
}