SHARE
TWEET

Untitled

a guest Dec 30th, 2018 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Thomas Krug <t.krug@elektronenpumpe.de>
  2. # Contributor: Thomas Krug <t.krug@elektronenpumpe.de>
  3.  
  4. pkgname=gerbv-git
  5. _pkgname=gerbv
  6. pkgver=r1515.83a3fb6
  7. pkgrel=1
  8. pkgdesc="An open source Gerber file (RS-274X only) viewer"
  9. url="http://gerbv.geda-project.org/"
  10. license=('GPL')
  11. arch=('i686' 'x86_64')
  12. depends=('gtk2')
  13. provides=('gerbv')
  14. conflicts=('gerbv')
  15. optdepends=('cairo: for better graphics')
  16. makedepends=('git' 'gettext')
  17. install=$pkgname.install
  18. source=("$_pkgname"::'git://git.geda-project.org/gerbv.git' 'https://sourceforge.net/p/gerbv/patches/70/attachment/0001-put-space-between-flags.patch')
  19. md5sums=('SKIP' '944cd5faa69e80934b558ebc396ea13b')
  20.  
  21. pkgver() {
  22.   cd "$srcdir/$_pkgname"
  23.   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  24. }
  25.  
  26. prepare() {
  27.   cd "$srcdir/$_pkgname"
  28.   patch -p1 < ../0001-put-space-between-flags.patch
  29.   ./autogen.sh
  30.   sed -i 's|am_aux_dir=`cd $ac_aux_dir|am_aux_dir=`cd $srcdir|' configure
  31. }
  32.  
  33. build ()
  34. {
  35.   cd "$srcdir/$_pkgname"
  36.  
  37.   ./configure --prefix=/usr \
  38.               --disable-update-desktop-database
  39.   make
  40. }
  41.  
  42. package()
  43. {
  44.   cd "$srcdir/$_pkgname"
  45.   make DESTDIR="$pkgdir" install
  46. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top