diff options
author | Sascha Paunovic <azarus@posteo.net> | 2018-06-05 20:48:07 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-06-07 07:49:08 +0000 |
commit | 4ab624dddb5569e13f98399981bb5c380a01abc3 (patch) | |
tree | 26ffca120deec446f1c40d831612e051050b33dc | |
parent | c70ba430cafd4d1c7d82272b40b3612b2a3b56fe (diff) | |
download | alpine_aports-4ab624dddb5569e13f98399981bb5c380a01abc3.tar.bz2 alpine_aports-4ab624dddb5569e13f98399981bb5c380a01abc3.tar.xz alpine_aports-4ab624dddb5569e13f98399981bb5c380a01abc3.zip |
testing/simh: new aport
-rw-r--r-- | testing/simh/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/simh/APKBUILD b/testing/simh/APKBUILD new file mode 100644 index 0000000000..85bf3e9cca --- /dev/null +++ b/testing/simh/APKBUILD | |||
@@ -0,0 +1,34 @@ | |||
1 | # Contributor: Sascha Paunovic <azarus@posteo.net> | ||
2 | # Maintainer: Sascha Paunovic <azarus@posteo.net> | ||
3 | pkgname=simh | ||
4 | pkgver=3.9.0 | ||
5 | _pkgver=39-0 | ||
6 | pkgrel=0 | ||
7 | pkgdesc="simulator for historical computers" | ||
8 | url="http://simh.trailing-edge.com" | ||
9 | arch="all" | ||
10 | license="BSD" | ||
11 | options="!check" | ||
12 | makedepends="libpcap-dev" | ||
13 | source="http://simh.trailing-edge.com/sources/simhv$_pkgver.zip" | ||
14 | builddir="$srcdir/" | ||
15 | |||
16 | build() { | ||
17 | cd "$builddir" | ||
18 | mkdir -p BIN | ||
19 | find VAX -type f -exec sed -i 's/SIM_INLINE//' {} + | ||
20 | make USEN_NETWORK=1 NETWORK_OPT="-DUSE_NETWORK -isystem /usr/include -lpcap" | ||
21 | } | ||
22 | |||
23 | package() { | ||
24 | cd "$builddir"/BIN | ||
25 | for i in *; do | ||
26 | install -D $i "$pkgdir"/usr/bin/simh-$i | ||
27 | done | ||
28 | |||
29 | cd "$srcdir"/VAX | ||
30 | mkdir -p "$pkgdir"/usr/lib/simh | ||
31 | cp *.bin "$pkgdir"/usr/lib/simh | ||
32 | } | ||
33 | |||
34 | sha512sums="5e8cbf92e980b7cb40d68ff60a266f70c0bef0eecdc169a8077ae72a6a71fe12a7be5c62bd033ca36727e2cb8f266a5a6f8a5ed6dd509afbf0a9d7b618f1a4f6 simhv39-0.zip" | ||