diff options
author | Noel Maersk | 2016-03-10 18:32:44 +0200 |
---|---|---|
committer | Noel Maersk | 2016-03-10 18:32:44 +0200 |
commit | 575c97d12c5fb00c400f76b663963489129c18e9 (patch) | |
tree | 73cda5d9d33a57c144512305eb86f6c34b6539b6 | |
download | aur-575c97d12c5fb00c400f76b663963489129c18e9.tar.gz |
Package builds.
-rw-r--r-- | .SRCINFO | 32 | ||||
-rw-r--r-- | PKGBUILD | 50 | ||||
-rw-r--r-- | fix-gts-search-missing-libm.patch | 13 | ||||
-rw-r--r-- | pcb.install | 37 |
4 files changed, 132 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f5de623f0457 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,32 @@ +pkgbase = pcb-git + pkgdesc = Interactive printed circuit board editor + pkgver = 20160310 + pkgrel = 1 + url = http://pcb.geda-project.org/ + install = pcb.install + arch = i686 + arch = x86_64 + license = GPL + makedepends = autoconf + makedepends = automake + makedepends = bison + makedepends = flex + makedepends = git + makedepends = intltool + makedepends = tk + depends = gtkglext + depends = gd + depends = gts + optdepends = tk: additional tools + optdepends = tcl: additional tools + optdepends = perl: additional tools + optdepends = desktop-file-utils: desktop integration + provides = pcb + conflicts = pcb + source = git://git.geda-project.org/pcb.git + source = fix-gts-search-missing-libm.patch + md5sums = SKIP + md5sums = 85ba1f0766697fdec313aa4d84f11d99 + +pkgname = pcb-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f41c2c608d8a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# 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=20160310 +pkgrel=1 +pkgdesc='Interactive printed circuit board editor' +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=('autoconf' 'automake' 'bison' 'flex' 'git' 'intltool' 'tk') +provides=('pcb') +conflicts=('pcb') +source=('git://git.geda-project.org/pcb.git' + 'fix-gts-search-missing-libm.patch') +md5sums=('SKIP' + '85ba1f0766697fdec313aa4d84f11d99') +install=pcb.install + +pkgver() { + cd "${_gitname}" + echo $(date +%Y%m%d) # format used by `pcb` in [community] + #echo $(git rev-list --count master).$(git rev-parse --short master) +} + +build() { + cd "${srcdir}/${_gitname}" + patch -p1 < "$srcdir/fix-gts-search-missing-libm.patch" + ./autogen.sh + ./configure \ + --prefix=/usr \ + --enable-dbus \ + --disable-update-mime-database \ + --disable-update-desktop-database \ + --disable-gl # FIXME: `configure` looks for weird libs + make +} + +package() { + cd "${srcdir}/${_gitname}" + make -j1 prefix="$pkgdir/usr" install + + rm "$pkgdir/usr/share/info/dir" +} diff --git a/fix-gts-search-missing-libm.patch b/fix-gts-search-missing-libm.patch new file mode 100644 index 000000000000..c1ab91d3a5d5 --- /dev/null +++ b/fix-gts-search-missing-libm.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index bd74db3..1436670 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -316,7 +316,7 @@ if test "x$enable_toporouter" = "xyes"; then + # apart toporouter related stuff and because testing for the library makes + # reasonably sure that GTS is available, we omit a test for gts.h. + #AC_CHECK_HEADER(gts.h, , AC_MSG_ERROR($this_error_text), glib.h) +- AC_SEARCH_LIBS(gts_object_class_new, gts, , AC_MSG_ERROR($this_error_text)) ++ AC_SEARCH_LIBS(gts_object_class_new, gts, , AC_MSG_ERROR($this_error_text), -lm) + unset this_error_text + fi + diff --git a/pcb.install b/pcb.install new file mode 100644 index 000000000000..62ce80440970 --- /dev/null +++ b/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 +} |