diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-02-25 10:25:19 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-02-25 10:25:19 +0100 |
commit | d8eb584da3a24a7b4cccf1b4b39b19ca8fc19495 (patch) | |
tree | 8e5ea3b068852a348646a0543fdacbd7de7a937e /community/simh | |
parent | 82e1a8e4caf3318dbb60adda8c2649ae7ac15661 (diff) | |
parent | 299e917c17619f800f0c21cf43209065b608223f (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community-testing/pigeonhole/PKGBUILD
community/mingw32-pthreads/PKGBUILD
community/openbsd-netcat/PKGBUILD
community/remmina/PKGBUILD
core/crda/PKGBUILD
core/libnl/PKGBUILD
core/wpa_supplicant/PKGBUILD
extra/fontconfig/PKGBUILD
extra/gnome-python-extras/PKGBUILD
extra/gstreamer0.10-ugly/PKGBUILD
extra/gvfs/PKGBUILD
extra/libcdio/PKGBUILD
extra/maxima/PKGBUILD
extra/vcdimager/PKGBUILD
extra/vlc/PKGBUILD
extra/xfdesktop/PKGBUILD
multilib/lib32-glibc/PKGBUILD
multilib/q4wine/PKGBUILD
testing/dovecot/PKGBUILD
Diffstat (limited to 'community/simh')
-rw-r--r-- | community/simh/PKGBUILD | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/community/simh/PKGBUILD b/community/simh/PKGBUILD index e1edd93e9..fb4130e97 100644 --- a/community/simh/PKGBUILD +++ b/community/simh/PKGBUILD @@ -1,16 +1,16 @@ -# $Id: PKGBUILD 59085 2011-11-21 09:31:01Z spupykin $ +# $Id: PKGBUILD 66322 2012-02-23 14:04:05Z allan $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: waterbear <st92.at.freeshell.org> pkgname=simh pkgver=3.8.1 _pkgver=38-1 -pkgrel=2 +pkgrel=3 pkgdesc="simulator for assorted historical computers, from Altair to VAX" arch=('i686' 'x86_64' 'mips64el') url="http://simh.trailing-edge.com" license=("BSD") -depends=("libpcap" "glibc") +depends=("libpcap") makedepends=("unzip") install=simh.install source=("http://simh.trailing-edge.com/sources/simhv${_pkgver}.zip" @@ -19,18 +19,21 @@ md5sums=('e15f65a82e21ea49e14b438326d93d5c' 'd56eefa5d020ee2b77d21280fef80e3d') build() { - cd $srcdir/ + 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 - mkdir BIN || true - find ./VAX -type f -exec sed -i 's#SIM_INLINE##' {} \; - make USE_NETWORK=1 NETWORK_OPT='-DUSE_NETWORK -isystem /usr/include -lpcap -lnl' || exit 1 + cd "$srcdir/VAX" + mkdir -p "$pkgdir/usr/lib/simh" + cp *.bin "$pkgdir/usr/lib/simh" - mkdir -p $pkgdir/usr/bin - cd BIN - for i in *; do cp $i $pkgdir/usr/bin/simh-$i; done - mkdir -p $pkgdir/usr/lib/simh - cd ../VAX - cp *.bin $pkgdir/usr/lib/simh - mkdir -p $pkgdir/usr/share/licenses/$pkgname - cp $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname + install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |