summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorÁbel Futó2015-07-26 21:06:36 +0200
committerÁbel Futó2015-07-26 21:06:36 +0200
commite11ec2ce4f13a2288518b9c0598c69c0cf4359d1 (patch)
tree327320970e78b3a5a45110111c23f5a44b064e20
downloadaur-e11ec2ce4f13a2288518b9c0598c69c0cf4359d1.tar.gz
Initial import
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD44
-rw-r--r--z88dk.sh1
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e68bee39358
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = z88dk
+ pkgdesc = A small C compiler for the Zilog Z80.
+ pkgver = 1.10.1
+ pkgrel = 1
+ url = http://z88dk.org
+ arch = i686
+ arch = x86_64
+ license = custom:The Clarified Artistic License
+ depends = glibc
+ backup = etc/profile.d/z88dk.sh
+ source = http://downloads.sourceforge.net/project/z88dk/z88dk/1.10/z88dk-1.10.1.tgz
+ source = z88dk.sh
+ md5sums = 7898bc04f9e5275845d6117cafa74096
+ md5sums = affe59b56fbba4d6a145f899bb073227
+
+pkgname = z88dk
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..72dfb19118d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Ábel Futó <lebaotuf+arch at gmail dot com>
+# Contributor: John Schug <xtr.xtrnet@gmail.com>
+pkgname=z88dk
+pkgver=1.10.1
+_pkgver=1.10
+pkgrel=1
+pkgdesc="A small C compiler for the Zilog Z80."
+arch=('i686' 'x86_64')
+url="http://z88dk.org"
+license=('custom:The Clarified Artistic License')
+depends=('glibc')
+backup=(etc/profile.d/z88dk.sh)
+source=(http://downloads.sourceforge.net/project/z88dk/z88dk/${_pkgver}/${pkgname}-${pkgver}.tgz
+ z88dk.sh)
+md5sums=('7898bc04f9e5275845d6117cafa74096'
+ 'affe59b56fbba4d6a145f899bb073227')
+
+prepare() {
+ cd "${srcdir}/${pkgname}"
+
+ # Do not override bool definition
+ sed -i "s/typedef int bool;//" src/z80asm/types.h
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+ make prefix="/usr" DESTDIR="${pkgdir}" install
+
+ echo "export ZCCCFG=/usr/share/z88dk/lib/config/" > ${pkgdir}/usr/share/z88dk/exports
+ echo "export Z80_OZFILES=/usr/share/z88dk/lib/" >> ${pkgdir}/usr/share/z88dk/exports
+
+ install -dm755 ${pkgdir}/etc/profile.d/
+ install -m755 ${srcdir}/z88dk.sh ${pkgdir}/etc/profile.d/
+ # License
+ install -D -m755 LICENSE "${pkgdir}/usr/share/licenses/z88dk/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/z88dk.sh b/z88dk.sh
new file mode 100644
index 00000000000..1b992c1c03b
--- /dev/null
+++ b/z88dk.sh
@@ -0,0 +1 @@
+sh /usr/share/z88dk/exports