summaryrefslogtreecommitdiff
path: root/community/gerbv/PKGBUILD
blob: 9c8af3255ac56acf168ab2ad588c05261ad1af83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $Id: PKGBUILD 99098 2013-10-24 12:43:42Z kkeen $
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Jared Casper <jaredcasper@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=gerbv
pkgver=2.6.1
pkgrel=2
pkgdesc="An open source Gerber file (RS-274X only) viewer"
#url="http://gerbv.gpleda.org/"
url="http://gerbv.geda-project.org/"
license=('GPL')
arch=('i686' 'x86_64')
depends=('gtk2' 'shared-mime-info' 'hicolor-icon-theme')
optdepends=('gdk-pixbuf: export of images' 'cairo: for better graphics')
makedepends=('cvs' 'gettext')
# cvs for autopoint
install=$pkgname.install
source=("http://downloads.sourceforge.net/gerbv/$pkgname-$pkgver.tar.gz"
        "reautopointissues.diff")
md5sums=('9a8af19574025fb15f987c3df610f8ae'
         '55c3aac2af1f99a88dfa7b1508594e49')

build ()
{
  cd "$srcdir/$pkgname-$pkgver"
  # remove patches on 2.6.2
  patch -Np1 -i ../reautopointissues.diff
  ./autogen.sh
  sed -i 's|am_aux_dir=`cd $ac_aux_dir|am_aux_dir=`cd $srcdir|' configure
  ./configure --prefix=/usr \
              --disable-update-desktop-database 
  make 
}

package()
{
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install 
}