1 # Contributor: Michael Krauss <hippodriver@gmx.net>
7 pkgdesc="The Ada 95 Booch Components"
8 url="http://www.adapower.net/booch/"
9 license=('GPL' 'custom:Modified_GPL')
10 install=$pkgname.install
12 source=(http://downloads.sourceforge.net/booch95/bc-${pkgver}.tgz)
13 md5sums=('ef20e4c3efc297774d61b4214298295d')
18 tar zxf bc-${pkgver}.tgz
19 cd bc-${pkgver} || return 1
20 mkdir -p $startdir/pkg/usr/lib/adabooch || return 1
21 mkdir -p $startdir/pkg/usr/share/adabooch/test || return 1
22 mkdir -p $startdir/pkg/usr/share/adabooch/demo || return 1
26 install --mode=644 $i $startdir/pkg/usr/lib/adabooch
29 install --mode=644 $i $startdir/pkg/usr/lib/adabooch
34 patch -p0 < $startdir/test_makefile.patch
36 install --mode=644 $i $startdir/pkg/usr/share/adabooch/test
42 patch -p0 < $startdir/demo_makefile.patch
44 install --mode=644 $i $startdir/pkg/usr/share/adabooch/demo
48 # install GANT stuff for completeness
49 cp -r GNAT $startdir/pkg/usr/share/adabooch
50 chmod 755 $startdir/pkg/usr/share/adabooch/GNAT
52 # install the license.
53 install -D -m644 $startdir/Modified_GPL \
54 "$pkgdir"/usr/share/licenses/$pkgname/Modified_GPL || return 1