summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5e8e347a8ab
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Contributor: Jared Casper <jaredcasper@gmail.com>
+pkgname=magic-devel
+pkgver=8.0.157
+pkgrel=1
+pkgdesc="A VLSI layout system"
+url="http://opencircuitdesign.com/magic/"
+arch=('i686' 'x86_64')
+license=('custom:copyright')
+depends=('tcl' 'tk' 'libx11')
+makedepends=('tcsh')
+optdepends=('mesa: for better graphics'
+ 'blt: to create a tree diagram of the cell hierarchy in a design')
+conflicts=('magic')
+provides=('magic')
+changelog=$pkgname.changelog
+source=(http://opencircuitdesign.com/magic/archive/magic-$pkgver.tgz)
+md5sums=('c8139e42cd73258ed2575ddc2ca99641')
+
+build () {
+ cd "$srcdir/magic-$pkgver"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/magic-$pkgver"
+ make -j1 DESTDIR="$pkgdir" MANDIR=/usr/share/man install
+
+ install -d "$pkgdir/usr/share/licenses/$pkgname"
+ if [ -x /usr/bin/ps2ascii ]; then
+ /usr/bin/ps2ascii "$pkgdir/usr/lib/magic/doc/copyright.ps" > "$pkgdir/usr/share/licenses/$pkgname/copyright"
+ else
+ install -m644 "$pkgdir/usr/lib/magic/doc/copyright.ps" "$pkgdir/usr/share/licenses/magic"
+ fi
+}