Mail archive
alpine-aports

[alpine-aports] [PATCH] testing/simh: new aport

From: Sascha Paunovic <azarus_at_posteo.net>
Date: Tue, 5 Jun 2018 20:48:07 +0200

---
 testing/simh/APKBUILD | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 testing/simh/APKBUILD
diff --git a/testing/simh/APKBUILD b/testing/simh/APKBUILD
new file mode 100644
index 0000000000..85bf3e9cca
--- /dev/null
+++ b/testing/simh/APKBUILD
_at_@ -0,0 +1,34 @@
+# Contributor: Sascha Paunovic <azarus_at_posteo.net>
+# Maintainer: Sascha Paunovic <azarus_at_posteo.net>
+pkgname=simh
+pkgver=3.9.0
+_pkgver=39-0
+pkgrel=0
+pkgdesc="simulator for historical computers"
+url="http://simh.trailing-edge.com"
+arch="all"
+license="BSD"
+options="!check"
+makedepends="libpcap-dev"
+source="http://simh.trailing-edge.com/sources/simhv$_pkgver.zip"
+builddir="$srcdir/"
+
+build() {
+	cd "$builddir"
+	mkdir -p BIN
+	find VAX -type f -exec sed -i 's/SIM_INLINE//' {} +
+	make USEN_NETWORK=1 NETWORK_OPT="-DUSE_NETWORK -isystem /usr/include -lpcap"
+}
+
+package() {
+	cd "$builddir"/BIN
+	for i in *; do
+		install -D $i "$pkgdir"/usr/bin/simh-$i
+	done
+
+	cd "$srcdir"/VAX
+	mkdir -p "$pkgdir"/usr/lib/simh
+	cp *.bin "$pkgdir"/usr/lib/simh
+}
+
+sha512sums="5e8cbf92e980b7cb40d68ff60a266f70c0bef0eecdc169a8077ae72a6a71fe12a7be5c62bd033ca36727e2cb8f266a5a6f8a5ed6dd509afbf0a9d7b618f1a4f6  simhv39-0.zip"
-- 
2.17.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Jun 05 2018 - 20:48:07 GMT