summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorThomas Krug2015-06-14 20:46:55 +0200
committerThomas Krug2015-06-14 20:46:55 +0200
commitd739ad1199fa4574ba1068bc18b9e7a36080dd10 (patch)
treee7d6b0aae3acd654b7bbf28b8305d89acda38135 /PKGBUILD
downloadaur-d739ad1199fa4574ba1068bc18b9e7a36080dd10.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0507b37e8a3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Thomas Krug <t.krug@elektronenpumpe.de>
+# Contributor: Thomas Krug <t.krug@elektronenpumpe.de>
+
+pkgname=gerbv-git
+_pkgname=gerbv
+pkgver=r1310.9ef643e
+pkgrel=1
+pkgdesc="An open source Gerber file (RS-274X only) viewer"
+url="http://gerbv.geda-project.org/"
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('gtk2')
+provides=('gerbv')
+conflicts=('gerbv')
+optdepends=('cairo: for better graphics')
+makedepends=('git' 'gettext')
+install=$pkgname.install
+source=("$_pkgname"::'git://git.geda-project.org/gerbv.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/$_pkgname"
+
+ ./autogen.sh
+ sed -i 's|am_aux_dir=`cd $ac_aux_dir|am_aux_dir=`cd $srcdir|' configure
+}
+
+build ()
+{
+ cd "$srcdir/$_pkgname"
+
+ ./configure --prefix=/usr \
+ --disable-update-desktop-database
+ make
+}
+
+package()
+{
+ cd "$srcdir/$_pkgname"
+ make DESTDIR="$pkgdir" install
+}
+