summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9746c49fefd3d15ff3694103c62d0f98b6353952 (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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=z80e
pkgver=0.5.0
pkgrel=2
license=('MIT')
pkgdesc='An emulation library and client programs for z80 calculators'
groups=("knightos")
depends=("sdl" "scas")
makedepends=("cmake" "asciidoc")
arch=("x86_64")
url='https://github.com/KnightOS/z80e'
source=("$pkgname-$pkgver.tar.gz::https://github.com/KnightOS/z80e/archive/$pkgver.tar.gz")
md5sums=('cec89fd0b0eecc63b616eabbe973ac4f')

build() {
	cd "${pkgname}-${pkgver}"
	echo "TARGET_LINK_LIBRARIES(z80e-sdl SDL2)" >> frontends/sdl/CMakeLists.txt
	cmake -Denable-sdl=YES -DCMAKE_INSTALL_PREFIX=/usr .
	make
}

package() {
	cd "${pkgname}-${pkgver}"
	DESTDIR="$pkgdir" make install
}