updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / magic-devel / PKGBUILD
blobdaafb1f72d79b311b25180e4242cd0e814c00635
1 # Contributor: Jared Casper <jaredcasper@gmail.com>
2 pkgname=magic-devel
3 pkgver=8.0.85
4 pkgrel=1
5 pkgdesc="A VLSI layout system"
6 arch=('i686 x86_64')
7 license=('custom')
8 url="http://opencircuitdesign.com/magic/"
9 depends=('tcl' 'tk' 'libx11')
10 makedepends=('tcsh')
11 optdepends=('mesa: for better graphics'
12             'blt: to create a tree diagram of the cell hierarchy in a design')
13 conflicts=('magic')
14 provides=('magic')
15 changelog=$pkgname.changelog
16 source=(http://opencircuitdesign.com/magic/archive/magic-$pkgver.tgz)
17 md5sums=('b5800138bc10a24e1d2d5ee17cf5da97')
19 build () {
20    cd $srcdir/magic-$pkgver/
21    ./configure --prefix=/usr
22    make
25 package() {
26    cd $srcdir/magic-$pkgver/
27    make -j1 DESTDIR=$pkgdir MANDIR=/usr/share/man install
28    install -d $pkgdir/usr/share/licenses/$pkgname
29    if [ -x /usr/bin/ps2ascii ]; then
30       /usr/bin/ps2ascii $pkgdir/usr/lib/magic/doc/copyright.ps > $pkgdir/usr/share/licenses/$pkgname/copyright
31    else
32       install -m644 $pkgdir/usr/lib/magic/doc/copyright.ps $pkgdir/usr/share/licenses/magic
33    fi