mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
36 lines
1 KiB
Bash
36 lines
1 KiB
Bash
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
# Contributor: waterbear <st92.at.freeshell.org>
|
|
|
|
pkgname=simh
|
|
pkgver=3.8.1
|
|
_pkgver=38-1
|
|
pkgrel=1
|
|
pkgdesc="simulator for assorted historical computers, from Altair to VAX"
|
|
arch=('i686' 'x86_64')
|
|
url="http://simh.trailing-edge.com"
|
|
license=("BSD")
|
|
depends=("libpcap" "glibc")
|
|
makedepends=("unzip")
|
|
install=simh.install
|
|
source=("http://simh.trailing-edge.com/sources/simhv${_pkgver}.zip" \
|
|
"LICENSE")
|
|
md5sums=('e15f65a82e21ea49e14b438326d93d5c'
|
|
'd56eefa5d020ee2b77d21280fef80e3d')
|
|
|
|
build() {
|
|
cd $srcdir/
|
|
|
|
mkdir BIN
|
|
find ./VAX -type f -exec sed -i 's#SIM_INLINE##' {} \;
|
|
make USE_NETWORK=1 NETWORK_OPT='-DUSE_NETWORK -isystem /usr/include /usr/lib/libpcap.a' || exit 1
|
|
|
|
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
|
|
}
|