summaryrefslogtreecommitdiff
path: root/community-staging/simh/PKGBUILD
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2012-02-13 01:08:38 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2012-02-13 01:08:38 -0300
commit6b1c32bde545b9e47ab1fe83fdfb722ca6218393 (patch)
treeac8f75aa35fc81be9eaffe905ab498e7713b2f84 /community-staging/simh/PKGBUILD
parent2c721caa534df76621bf07705ed0ea80efe44f8b (diff)
parent0020cc650ff973f269f23332e82fc097254d0adc (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/ccze/PKGBUILD community/remind/PKGBUILD core/iw/PKGBUILD core/less/PKGBUILD extra/davfs2/PKGBUILD extra/ettercap/PKGBUILD extra/gtk-xfce-engine/PKGBUILD extra/imagemagick/PKGBUILD extra/kismet/PKGBUILD extra/libmp3splt/PKGBUILD extra/php/PKGBUILD extra/xfce4-verve-plugin/PKGBUILD multilib/lib32-glib2/PKGBUILD multilib/lib32-pcre/PKGBUILD multilib/wine/PKGBUILD staging/xorg-server/PKGBUILD
Diffstat (limited to 'community-staging/simh/PKGBUILD')
-rw-r--r--community-staging/simh/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community-staging/simh/PKGBUILD b/community-staging/simh/PKGBUILD
new file mode 100644
index 000000000..b75f1c554
--- /dev/null
+++ b/community-staging/simh/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 64274 2012-02-11 04:56:12Z heftig $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: waterbear <st92.at.freeshell.org>
+
+pkgname=simh
+pkgver=3.8.1
+_pkgver=38-1
+pkgrel=3
+pkgdesc="simulator for assorted historical computers, from Altair to VAX"
+arch=('i686' 'x86_64')
+url="http://simh.trailing-edge.com"
+license=("BSD")
+depends=("libpcap")
+makedepends=("unzip")
+install=simh.install
+source=("http://simh.trailing-edge.com/sources/simhv${_pkgver}.zip"
+ "LICENSE")
+md5sums=('e15f65a82e21ea49e14b438326d93d5c'
+ 'd56eefa5d020ee2b77d21280fef80e3d')
+
+build() {
+ cd "$srcdir"
+ mkdir -p BIN
+ find VAX -type f -exec sed -i 's/SIM_INLINE//' {} +
+ make USE_NETWORK=1 NETWORK_OPT='-DUSE_NETWORK -isystem /usr/include -lpcap'
+}
+
+package() {
+ cd "$srcdir/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"
+
+ install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}