summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Tremesaygues2020-01-19 11:12:46 +0100
committerJonathan Tremesaygues2020-01-19 11:12:46 +0100
commitd8926025d623f450365be971f228b4a1fccb019a (patch)
tree0967d671e0588e477284aee53924c22a39130f35
downloadaur-d8926025d623f450365be971f228b4a1fccb019a.tar.gz
initial commit
-rw-r--r--.SRCINFO24
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD43
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..920bbce51d2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = magic-git
+ pkgdesc = A VLSI layout system
+ pkgver = r646.594fc58
+ pkgrel = 1
+ url = http://opencircuitdesign.com/magic/
+ arch = i686
+ arch = x86_64
+ license = custom:copyright
+ makedepends = git
+ makedepends = tcsh
+ depends = tcl
+ depends = tk
+ depends = libx11
+ optdepends = mesa: for better graphics
+ optdepends = cairo: for better graphics
+ optdepends = glu: for better graphics
+ optdepends = blt: to create a tree diagram of the cell hierarchy in a design
+ provides = magic
+ conflicts = magic
+ source = git://opencircuitdesign.com/magic#branch=magic-8.2
+ md5sums = SKIP
+
+pkgname = magic-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..05c6d4d4c97
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
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"
+}
+