diff options
author | Drew DeVault | 2015-06-08 13:55:03 -0600 |
---|---|---|
committer | Drew DeVault | 2015-06-08 13:55:03 -0600 |
commit | a6d08511d0c4c27bcdba9fafedcade6cf523ea39 (patch) | |
tree | e6c1bf15ee21df31e93191706a6ae75f57a843e6 | |
download | aur-a6d08511d0c4c27bcdba9fafedcade6cf523ea39.tar.gz |
Initial import from aur3
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rw-r--r-- | yaze.patch | 87 |
3 files changed, 132 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7f93b088efdb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = yaze + pkgdesc = Yet Another z80 (CP/M) Emulator + pkgver = 2.30.3 + pkgrel = 1 + url = http://www.mathematik.uni-ulm.de/users/ag/yaze-ag/ + arch = i386 + arch = x86_64 + license = GPL + source = http://www.mathematik.uni-ulm.de/users/ag/yaze-ag/devel/yaze-ag-2.30.3.tar.gz + source = yaze.patch + sha1sums = f3c162053bb25035cabe5da55a08efa94322fe95 + sha1sums = f9a4f8c9500746fd2a470c6f6826b0744e8f414f + +pkgname = yaze + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6d715e4451eb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Drew DeVault <sir@cmpwn.com> +pkgname=yaze +pkgver=2.30.3 +pkgrel=1 +license=('GPL') +pkgdesc='Yet Another z80 (CP/M) Emulator' +arch=("i386" "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-2.30.3.tar.gz" + "yaze.patch") +sha1sums=('f3c162053bb25035cabe5da55a08efa94322fe95' + 'f9a4f8c9500746fd2a470c6f6826b0744e8f414f') + +prepare() { + cd "${srcdir}/${pkgname}-ag-${pkgver}" + + patch -p1 -i $srcdir/yaze.patch +} + +build() { + cd "${srcdir}/${pkgname}-ag-${pkgver}" + + make -f Makefile_linux +} + +package() { + cd "${srcdir}/${pkgname}-ag-${pkgver}" + + make PREFIX="$pkgdir/usr" -f Makefile_linux install +} diff --git a/yaze.patch b/yaze.patch new file mode 100644 index 000000000000..096fe46a6165 --- /dev/null +++ b/yaze.patch @@ -0,0 +1,87 @@ +diff -aur yaze-ag-2.30.3-pristine/Makefile_linux yaze-ag-2.30.3-patched/Makefile_linux +--- yaze-ag-2.30.3-pristine/Makefile_linux 2015-01-06 19:13:11.951033955 -0700 ++++ yaze-ag-2.30.3-patched/Makefile_linux 2015-01-06 19:13:20.224274093 -0700 +@@ -4,12 +4,13 @@ + CC = gcc + + #where you want the binaries and manual page +-BINDIR = /usr/local/bin +-MANDIR = /usr/local/man/man1 +-LIBDIR = /usr/local/lib/yaze +-DSKDIR = $(LIBDIR)/disks +-DOCDIR = $(LIBDIR)/doc +-DOCHTMLDIR = $(LIBDIR)/doc_html ++PREFIX := /usr/local ++BINDIR = $(PREFIX)/bin/ ++MANDIR = $(PREFIX)/man/man1/ ++LIBDIR = $(PREFIX)/lib/yaze/ ++DSKDIR = $(LIBDIR)/disks/ ++DOCDIR = $(LIBDIR)/doc/ ++DOCHTMLDIR = $(LIBDIR)/doc_html/ + + #OPTIMIZE = -g -m486 + #OPTIMIZE = -g -save-temps -m486 +@@ -44,7 +45,7 @@ + #OPTIMIZE = -O3 -march=pentiumpro + #OPTIMIZE = -O3 -march=pentium2 + #OPTIMIZE = -O3 -march=pentium3 +-OPTIMIZE = -O3 -march=pentium4 ++OPTIMIZE = -O3 + #OPTIMIZE = -O3 -march=nocona # 64 Bit Intel + #OPTIMIZE = -O3 -march=k6 + #OPTIMIZE = -O3 -march=k6-2 +@@ -180,6 +181,7 @@ + rm -rf $(LIBDIR) + mkdir -p $(LIBDIR) + mkdir -p $(MANDIR) ++ mkdir -p $(BINDIR) + $(INSTALL) -s -c -m 755 yaze_bin $(BINDIR) + $(INSTALL) -s -c -m 755 cdm $(BINDIR) + $(INSTALL) -c -m 755 yaze $(BINDIR) +diff -aur yaze-ag-2.30.3-pristine/yaze.1 yaze-ag-2.30.3-patched/yaze.1 +--- yaze-ag-2.30.3-pristine/yaze.1 2015-01-06 19:13:11.951033955 -0700 ++++ yaze-ag-2.30.3-patched/yaze.1 2015-01-06 19:13:20.224274093 -0700 +@@ -91,7 +91,7 @@ + address given by the \fB-l\fR option, if one is present, or else at + the basepage (see \fB-p\fR). If a bootfile is not specified with the + \fB-b\fR option, yaze-ag looks for the file yaze-cpm3.boot in the current +-directory first, then in /usr/local/lib/yaze to boot CP/M 3.1. ++directory first, then in /usr/lib/yaze to boot CP/M 3.1. + If yaze-ag is compiled without the flag -DBOOTSYS yaze-ag looks for the + file yaze.boot (instead of yaze-cpm3.boot) to boot the CP/M 2.2 replacement + SuperDos. +diff -aur yaze-ag-2.30.3-pristine/yaze.c yaze-ag-2.30.3-patched/yaze.c +--- yaze-ag-2.30.3-pristine/yaze.c 2015-01-06 19:13:11.951033955 -0700 ++++ yaze-ag-2.30.3-patched/yaze.c 2015-01-06 19:13:57.160524934 -0700 +@@ -43,13 +43,13 @@ + /* See definitions for memory in mem_mmu.[c,h] (agl) */ + + #ifndef LIBDIR +-#define LIBDIR "/usr/local/lib/yaze" ++#define LIBDIR "/usr/lib/yaze" + #endif + + #ifdef BOOTSYS +-static char *bootfile = "yaze-cpm3.boot"; ++static char *bootfile = "/usr/lib/yaze/yaze-cpm3.boot"; + #else +-static char *bootfile = "yaze.boot"; ++static char *bootfile = "/usr/lib/yaze/yaze.boot"; + #endif + static char *startup = ".yazerc"; + static char *progname; +diff -aur yaze-ag-2.30.3-pristine/yaze.sh yaze-ag-2.30.3-patched/yaze.sh +--- yaze-ag-2.30.3-pristine/yaze.sh 2015-01-06 19:13:11.954367250 -0700 ++++ yaze-ag-2.30.3-patched/yaze.sh 2015-01-06 19:13:20.224274093 -0700 +@@ -1,8 +1,8 @@ + #!/bin/sh + +-S_CPMDSKS=/usr/local/lib/yaze/disks +-S_DOCFILES=/usr/local/lib/yaze/doc +-S_DOCFILES_html=/usr/local/lib/yaze/doc_html ++S_CPMDSKS=/usr/lib/yaze/disks ++S_DOCFILES=/usr/lib/yaze/doc ++S_DOCFILES_html=/usr/lib/yaze/doc_html + + if [ ! -f .yazerc ] + then |