# Contributor: Jared Casper # Maintainer: Stefan Husmann pkgname=geda-gaf-unstable _pkgname=geda-gaf pkgver=1.9.2 _pkgver=v1.9 pkgrel=3 pkgdesc="gEDA/gaf suite - contains gschem, gnetlist, gsymcheck, gattrib, utilities and documentation from the gEDA project" arch=('i686' 'x86_64') url="http://www.geda-project.org/" license=('GPL') depends=('gtk2' 'guile' 'libstroke') optdepends=('python2: for two of the commands (garchive, tragesym)' 'gawk: for sw2asc') conflicts=('geda-gaf') provides=('geda-gaf') source=(http://ftp.geda-project.org/geda-gaf/unstable/${_pkgver}/$pkgver/${_pkgname}-$pkgver.tar.gz) sha256sums=('3f3ba90a0f1db1e71caaadcabdb52e375864a8e04e3d6330293b84ef6e21b392') prepare() { cd $srcdir/${_pkgname}-$pkgver sed -i '30i#include ' gaf/gaf.c sed -i '27i#include ' gattrib/src/gattrib.c sed -i '23i#include ' gnetlist/src/gnetlist.c } build () { cd $srcdir/${_pkgname}-$pkgver/ CFLAGS="-DGLIB_COMPILATION" ./configure --prefix=/usr --disable-update-xdg-database make } package() { cd $srcdir/${_pkgname}-$pkgver/ make DESTDIR=$pkgdir/ install sed -i 's+/usr/bin/env python+/usr/bin/env python2+' \ $pkgdir/usr/bin/garchive sed -i 's+/usr/bin/python+/usr/bin/python2+' \ $pkgdir/usr/bin/tragesym sed -i 's+/usr/bin/python+/usr/bin/python2+' \ $pkgdir/usr/share/doc/${_pkgname}/examples/lightning_detector/bom }