summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dc98d4bc05229a7fcdf8bb603b7a94b8e51b92e3 (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
41
42
43
44
45
46
47
48
49
50
# Maintainer:  Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Thomas Crescenzi <xsq1104 at aol dot com>

set -u
pkgname='kat5200'
pkgver='0.8.1'
pkgrel='1'
pkgdesc='an emulator for the Atari 5200 console and Atari 8-bit computers'
arch=('i686' 'x86_64')
url='http://kat5200.jillybunch.com/'
license=('GPL')
depends=('zlib' 'sdl2' 'sdl2_image' 'guichan')
_verwatch=("${url}downloads.html" '\s\+Version\s\([0-9\.]\+\)\s*' 'f')
#_verwatch[1]='\s\+<li><a href="downloads/kat5200-\([0-9\.]\+\)\.tar\.gz.*'
source=("${url}downloads/${pkgname}-${pkgver}.tar.gz")
sha256sums=('d11219e6ded045a51500ac76ff71b0f7f2e358465b3790a1ea8a57643d97ea76')

prepare() {
  set -u
  cd "${srcdir}/${pkgname}-${pkgver}"
  #CPPFLAGS="${CPPFLAGS} -I/usr/include/SDL" \ # 0.6.3
  ./configure --prefix='/usr'
  set +u
}

build() {
  set -u
  cd "${srcdir}/${pkgname}-${pkgver}"
  local _nproc="$(nproc)"; _nproc=$((_nproc>8?8:_nproc))
  nice make -s -j "${_nproc}"
  set +u
}

check() {
  set -u
  cd "${srcdir}/${pkgname}-${pkgver}"
  make -j1 -k check
  set +u
}

package() {
  set -u
  cd "${srcdir}/${pkgname}-${pkgver}"
  #make prefix=${pkgdir}/usr install
  make -j1 DESTDIR="${pkgdir}" install
  set +u
}
set +u

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