diff options
Diffstat (limited to 'community/pcb')
-rw-r--r-- | community/pcb/Changelog | 22 | ||||
-rw-r--r-- | community/pcb/PKGBUILD | 36 | ||||
-rw-r--r-- | community/pcb/pcb.install | 37 |
3 files changed, 95 insertions, 0 deletions
diff --git a/community/pcb/Changelog b/community/pcb/Changelog new file mode 100644 index 000000000..c1580a1b9 --- /dev/null +++ b/community/pcb/Changelog @@ -0,0 +1,22 @@ +2010-09-30 Jared Casper <jaredcasper@gmail.com> + * 20100929-1 + - Version bump + - split build and package + - Remove || return 1 + - Add -j1 to make install + - Use changelog variable + +2009-11-04 Jared Casper <jaredcasper@gmail.com> + * 20091103-1 + - Version bump + - Added --enable-dbus to configure + +2008-11-28 Jared Casper <jaredcasper@gmail.com> + * 20081128-1 + - Version bump + - added ChangeLog + - Fixed download URL + - Fixed build when tk is not installed + - Fixed info file handling handling + + diff --git a/community/pcb/PKGBUILD b/community/pcb/PKGBUILD new file mode 100644 index 000000000..e7a7fcf0c --- /dev/null +++ b/community/pcb/PKGBUILD @@ -0,0 +1,36 @@ +# Contributor: Jared Casper <jaredcasper@gmail.com> +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> + +pkgname=pcb +pkgver=20100929 +pkgrel=2 +pkgdesc="An interactive printed circuit board editor for the X11 window system." +url="http://pcb.gpleda.org/" +license=('GPL') +arch=('i686' 'x86_64') +depends=('tcl' 'gtk2' 'gd' 'perlxml' 'hicolor-icon-theme' 'shared-mime-info') +optdepends=('tk: for the graphical QFP footprint builder') +install=$pkgname.install +changelog=Changelog +source=(http://downloads.sourceforge.net/pcb/$pkgname-$pkgver.tar.gz) +md5sums=('4c71f5d1c40ad65539957748b88eb863') + +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 +} + +package() { + cd $srcdir/$pkgname-$pkgver/ + make -j1 prefix=$pkgdir/usr install + rm $pkgdir/usr/share/info/dir +} + diff --git a/community/pcb/pcb.install b/community/pcb/pcb.install new file mode 100644 index 000000000..62ce80440 --- /dev/null +++ b/community/pcb/pcb.install @@ -0,0 +1,37 @@ +infodir=/usr/share/info +filelist=(pcb.info pcb.info-1 pcb.info-2) + +post_install() { + if [ -x /usr/bin/update-mime-database ]; then + echo Updating mime database... + /usr/bin/update-mime-database /usr/share/mime + fi + if [ -x /usr/bin/update-desktop-database ]; then + echo Updating desktop database.. + /usr/bin/update-desktop-database /usr/share/applications + fi + if [ -x /usr/bin/install-info ]; then + echo Updating info directory... + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done + fi + /usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + if [ -x /usr/bin/install-info ]; then + echo Updating info directory... + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done + fi +} + +post_remove() { + /usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor +} |