updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / magic / PKGBUILD
blob1d904271a089e5adbbdf7220085e9043d663d54b
1 # Contributor: Jared Casper <jaredcasper@gmail.com>
2 pkgname=magic
3 pkgver=7.5.207
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 changelog=$pkgname.changelog
14 source=(http://opencircuitdesign.com/magic/archive/$pkgname-$pkgver.tgz)
15 md5sums=('8e60929efedd4467fb02478740442d8d')
17 build() {
18    cd $srcdir/$pkgname-$pkgver/
19    ./configure --prefix=/usr
20    make
23 package() {
24    cd $srcdir/$pkgname-$pkgver/
25    make -j1 DESTDIR=$pkgdir MANDIR=/usr/share/man install
26    install -d $pkgdir/usr/share/licenses/$pkgname
27    if [ -x /usr/bin/ps2ascii ]; then
28       /usr/bin/ps2ascii $pkgdir/usr/lib/magic/doc/copyright.ps > $pkgdir/usr/share/licenses/$pkgname/copyright
29    else
30       install -m644 $pkgdir/usr/lib/magic/doc/copyright.ps $pkgdir/usr/share/licenses/magic
31    fi