summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 28b52885c037e4cc7ab08a45b1c413367f8107af (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
42
43
44
45
# Maintainer: Noel Maersk <veox at wemakethings dot net>
# Contributors: https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/pcb

pkgname=pcb-git
_gitname=pcb
pkgver=4227.e6acd71d
pkgrel=1
epoch=1
pkgdesc='Interactive printed circuit board editor (latest git revision)'
url='http://pcb.geda-project.org/'
license=('GPL')
arch=('i686' 'x86_64')
depends=('gtkglext' 'gd' 'gts')
optdepends=('tk: additional tools'
            'tcl: additional tools'
            'perl: additional tools'
	    'desktop-file-utils: desktop integration')
makedepends=('git' 'intltool' 'tk')
provides=('pcb')
conflicts=('pcb')
source=("git://git.geda-project.org/${_gitname}.git")
md5sums=('SKIP')

pkgver() {
  cd "${_gitname}"
  echo $(git rev-list --count master).$(git rev-parse --short master)
}

build() {
  cd "${srcdir}/${_gitname}"

  ./autogen.sh
  ./configure \
      --prefix=/usr \
      --enable-dbus \
      --disable-update-mime-database \
      --disable-update-desktop-database

  make
}

package() {
  cd "${srcdir}/${_gitname}"
  make -j1 prefix="$pkgdir/usr" install
}