Date: Friday, December 11, 2015 @ 19:47:06 Author: kkeen Revision: 153052
pkg-re-init: pcb-20140316-2 Added: pcb/ pcb/repos/ pcb/trunk/ pcb/trunk/PKGBUILD pcb/trunk/pcb.install -------------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ pcb.install | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) Added: pcb/trunk/PKGBUILD =================================================================== --- pcb/trunk/PKGBUILD (rev 0) +++ pcb/trunk/PKGBUILD 2015-12-11 18:47:06 UTC (rev 153052) @@ -0,0 +1,42 @@ +# $Id$ +# Maintainer: Kyle Keen <[email protected]> +# Contributor: Matthias Blankertz <matthias at blankertz dot org> +# Contributor: Egon Geerardyn <egon dot geerardyn at gmail dot com> +# Contributor: kfgz <kfgz at interia pl> +# Contributor: Gaetan Bisson <bisson at archlinux dot org> +# Contributor: Jared Casper <jaredcasper at gmail dot com> +# Contributor: Stefan Husmann <stefan-husmann at t-online dot de> + +pkgname=pcb +pkgver=20140316 +pkgrel=2 +pkgdesc='Interactive printed circuit board editor' +url='http://pcb.geda-project.org/' +license=('GPL') +arch=('i686' 'x86_64') +depends=('gtkglext' 'gd') +optdepends=('tk: additional tools' + 'tcl: additional tools' + 'perl: additional tools' + 'desktop-file-utils: desktop integration') +makedepends=('intltool' 'tk') +source=("http://downloads.sourceforge.net/pcb/${pkgname}-${pkgver}.tar.gz") +sha1sums=('ec714ff136d1817e500e1a9e654e786883b9501e') +install=pcb.install + +build() { + 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" +} Property changes on: pcb/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Added: pcb/trunk/pcb.install =================================================================== --- pcb/trunk/pcb.install (rev 0) +++ pcb/trunk/pcb.install 2015-12-11 18:47:06 UTC (rev 153052) @@ -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 +}
