summaryrefslogtreecommitdiff
path: root/community/pcb/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/pcb/PKGBUILD')
-rw-r--r--community/pcb/PKGBUILD55
1 files changed, 31 insertions, 24 deletions
diff --git a/community/pcb/PKGBUILD b/community/pcb/PKGBUILD
index 57651f7d7..cb0b68aeb 100644
--- a/community/pcb/PKGBUILD
+++ b/community/pcb/PKGBUILD
@@ -1,36 +1,43 @@
+# $Id$
+
+# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Jared Casper <jaredcasper@gmail.com>
-# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=pcb
pkgver=20110918
-pkgrel=1
-pkgdesc="An interactive printed circuit board editor for the X11 window system."
-url="http://pcb.gpleda.org/"
+pkgrel=2
+pkgdesc='Interactive printed circuit board editor'
+url='http://pcb.gpleda.org/'
license=('GPL')
arch=('i686' 'x86_64')
-depends=('tcl' 'gtkglext' 'gd' 'perlxml' 'hicolor-icon-theme' 'desktop-file-utils')
-optdepends=('tk: for the graphical QFP footprint builder')
-install=$pkgname.install
-changelog=Changelog
-source=(http://downloads.sourceforge.net/pcb/$pkgname-$pkgver.tar.gz)
-md5sums=('54bbc997eeb22b85cf21fed54cb8e181')
+depends=('gtkglext' 'gd' 'hicolor-icon-theme')
+optdepends=('tk: additional tools'
+ 'tcl: additional tools'
+ 'perl: additional tools')
+makedepends=('intltool' 'tk')
+source=("http://downloads.sourceforge.net/pcb/${pkgname}-${pkgver}.tar.gz")
+sha1sums=('53ca27797d4db65a068b56f157e3ea6c5c29051f')
+
+install=install
build() {
- cd $srcdir/$pkgname-$pkgver/
- if [ ! -x /usr/bin/wish ]; then
- config="env WISH=/usr/bin/true ./configure --enable-dbus"
- else
- config="./configure --enable-dbus"
- fi
- $config --prefix=/usr \
- --disable-update-mime-database \
- --disable-update-desktop-database
- make
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure \
+ --prefix=/usr \
+ --enable-dbus \
+ --disable-update-mime-database \
+ --disable-update-desktop-database
+ make
}
package() {
- cd $srcdir/$pkgname-$pkgver/
- make -j1 prefix=$pkgdir/usr install
- rm $pkgdir/usr/share/info/dir
-}
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make -j1 prefix="${pkgdir}"/usr install
+ rm "${pkgdir}"/usr/share/info/dir
+ rm "${pkgdir}"/usr/include/gts.h
+ rm "${pkgdir}"/usr/lib/libgts.a
+ rmdir "${pkgdir}"/usr/include
+ rmdir "${pkgdir}"/usr/lib
+}