1 # Contributor: Lawrence Lee <valheru@facticius.net>
5 pkgdesc="BSVC is a microprocessor simulation framework written in C++ and Tcl/Tk"
7 url="http://www.bradfordmott.com/bsvc/"
9 depends=('tk' 'tcl' 'gcc')
10 source=(http://www.bradfordmott.com/bsvc/distributions/$pkgname-$pkgver-src.tar.gz bsvc-2.1.patch bsvc.sh)
11 md5sums=('5997ba10e2d16b5913851ce2ee360354'
12 '57b64b9f8aca3010f5cf4bf44ba82fec'
13 '9bf20e19ee3bf1a0f068c3f06a9dd61d')
17 patch -p0 -i bsvc-2.1.patch
18 cd $pkgname-$pkgver/src
19 make -f Makefile.Linux || return 1
20 make -f Makefile.Linux INSTALL_DIR=$startdir/pkg/opt/bsvc install
22 sed -e 's|exec wish -f /usr/src/bsvc/src/bsvc-2.1/bin/UI/bsvc.tk|exec wish -f /opt/bsvc/UI/bsvc.tk|' \
23 -i $startdir/pkg/opt/bsvc/bsvc
24 sed -r 's|/usr/src/bsvc/src/bsvc-2.1/bin|/opt/bsvc|' -i $startdir/pkg/opt/bsvc/UI/bsvc.tk
25 cp -rf $startdir/src/$pkgname-$pkgver/doc $startdir/pkg/opt/bsvc
26 cp -rf $startdir/src/$pkgname-$pkgver/misc $startdir/pkg/opt/bsvc
27 cp -rf $startdir/src/$pkgname-$pkgver/samples $startdir/pkg/opt/bsvc
28 mkdir -p $startdir/pkg/etc/profile.d
29 install -D -m755 $startdir/src/bsvc.sh $startdir/pkg/etc/profile.d/