summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a90a3b0ec30b4814004663294db79ba5a94435e1 (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
# Maintainer: Frederic Bezies < fredbezies at gmail dot com>
# Contributor: Drew DeVault <sir@cmpwn.com>
pkgname=yaze
pkgver=2.40.5
pkgrel=1
license=('GPL')
pkgdesc='Yet Another z80 (CP/M) Emulator'
arch=("i686" "x86_64")
url='http://www.mathematik.uni-ulm.de/users/ag/yaze-ag/'
source=("http://www.mathematik.uni-ulm.de/users/ag/yaze-ag/devel/yaze-ag-${pkgver}_with_keytrans.tar.gz"
        "yaze.patch")
sha256sums=('d46c861eb0725b87dd5567062f277860b98d538fca477d8686f17b36ef39d9bd'
           'c0abd301728f95ccd825e3f17c56a743307c219a5fd046782105e65d552e6056')

prepare() {
  cd ${pkgname}-ag-${pkgver}_with_keytrans

  patch -p1 -i ../yaze.patch
  cp Makefile_linux_32_i586 Makefile
}

build() {
  cd ${pkgname}-ag-${pkgver}_with_keytrans

  [[ ${CARCH} == x86_64 ]] && _BUILD='" (build for x86_64Bit (x86-64))"'
  [[ ${CARCH} == i686 ]] && _BUILD='" (build for x86_32Bit (i686))"'

  make PREFIX=/usr BUILD="${_BUILD}" OPTIMIZE="${CFLAGS/-O2/-O3}"
}

package() {
  cd ${pkgname}-ag-${pkgver}_with_keytrans

  make PREFIX="${pkgdir}/usr" install
}