makedeb


zesarux 10.1-1


A Zx80/Zx81/Z88, Zx Spectrum 16/48/128/+2/+2A and ZX-Uno emulator with ULAPlus support

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for zesarux.

# Maintainer: John Ruschmeyer <jruschme@gmail.com>
# Contributor: Alfonso Saavedra "Son Link" <sonlink.dourden@gmail.com>

pkgname=zesarux
pkgver=10.1
pkgrel=1
pkgdesc="A Zx80/Zx81/Z88, Zx Spectrum 16/48/128/+2/+2A and ZX-Uno emulator with ULAPlus support"
arch=('i386' 'amd64')
url="https://github.com/chernandezba/zesarux"
license=('GPL3')
conflicts=('zesarux-git')
depends=('libcaca0' 'libaa1' 'libasound2' 'libxxf86vm1')
makedepends=('libcaca-dev' 'libaa1-dev' 'libasound2-dev' 'libxxf86vm-dev')
optdepends=('libpulse: for support Pulseaudio'
	'openssl: for enable SSL functions'
	'sdl: for support sdl video and audio output')
source=("https://github.com/chernandezba/zesarux/releases/download/ZEsarUX-${pkgver}/ZEsarUX_src-${pkgver}.tar.gz"
	zesarux.desktop
	zesarux.png)
install="zesarux.install"
sha256sums=('91006bd4732dcb7141c51c7149266155a0fad5b547eadee94f75b49fc67d2049'
            'a2b56a0349c52dc3826094cd587cc775033f4e206f4dafa4345b509c548736e1'
            'e11be8695f0f75ac2ad5c32e225a3a7aca35ca97b4d1f04726bda476aa460eb5')

build() {
	cd "${srcdir}/ZEsarUX-${pkgver}"
        # Working around a bug of libcaca
	./configure --prefix /usr --enable-memptr --enable-visualmem --enable-cpustats --disable-caca --enable-sdl2
	sed -i 's/tar -C/#tar -C/g' Makefile
	make bintargz
}
package(){
	if [  ! -d "${pkgdir}/usr" ]; then
		mkdir -p "${pkgdir}/usr/bin"
		mkdir -p "${pkgdir}/usr/share/zesarux/"
		mkdir -p "${pkgdir}/usr/share/applications"
	fi
	cd ${srcdir}/ZEsarUX-${pkgver}
	cp zesarux "${pkgdir}/usr/bin/"
	cp bintargztemp/ZEsarUX-${pkgver}/* -r "${pkgdir}/usr/share/zesarux/"
	cp ${srcdir}/zesarux.desktop "${pkgdir}/usr/share/applications/"
	cp ${srcdir}/zesarux.png "${pkgdir}/usr/share/zesarux/"
	rm "${pkgdir}/usr/share/zesarux/zesarux"
}