summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJonathan Tremesaygues2020-01-19 11:12:46 +0100
committerJonathan Tremesaygues2020-01-19 11:12:46 +0100
commitd8926025d623f450365be971f228b4a1fccb019a (patch)
tree0967d671e0588e477284aee53924c22a39130f35 /PKGBUILD
downloadaur-d8926025d623f450365be971f228b4a1fccb019a.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b3153210cd5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Jonathan Tremesaygues <killruana@slaanesh.org>
+pkgname=magic-git
+pkgver=r646.594fc58
+pkgrel=1
+pkgdesc="A VLSI layout system"
+url="http://opencircuitdesign.com/magic/"
+arch=('i686' 'x86_64')
+license=('custom:copyright')
+provides=('magic')
+conflicts=('magic')
+depends=('tcl' 'tk' 'libx11')
+makedepends=('git' 'tcsh')
+optdepends=('mesa: for better graphics'
+ 'cairo: for better graphics'
+ 'glu: for better graphics'
+ 'blt: to create a tree diagram of the cell hierarchy in a design')
+source=("git://opencircuitdesign.com/magic#branch=magic-8.2")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ 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
+ mv "$pkgdir/usr/share/man/man1/extcheck.1" "$pkgdir/usr/share/man/man1/extcheck-magic.1"
+}
+