From 5e6237407919e2c03b7075edea8f8b14dc0acf5a Mon Sep 17 00:00:00 2001 From: Manuel Date: Sat, 11 May 2013 19:48:44 +0000 Subject: [PATCH] Add hugin --- hugin/PKGBUILD | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++ hugin/install | 15 ++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 hugin/PKGBUILD create mode 100644 hugin/install diff --git a/hugin/PKGBUILD b/hugin/PKGBUILD new file mode 100644 index 0000000..ea214e9 --- /dev/null +++ b/hugin/PKGBUILD @@ -0,0 +1,64 @@ +# WARNING: this package should exactly match the hugin-tools platform package + +pkgname=hugin +pkgver=2012.0.0 +pkgrel=4 +pkgdesc='Panorama photo stitcher' +url='http://hugin.sourceforge.net/' +license=('GPL') +arch=('i686' 'x86_64') +depends=('wxgtk' 'boost-libs' 'enblend-enfuse' 'exiv2' 'autopano-sift-c' "hugin-tools=${pkgver}" + 'lensfun' 'lapack' 'make' 'perl-exiftool' 'desktop-file-utils' 'filesystem-extra') +makedepends=('cmake' 'boost' 'tclap' 'mesa') +source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2") +sha1sums=('53f97d030716e66dc5a49c7e786686a9d5262b8d') + +install=install + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + export CXXFLAGS+=" -fpermissive" + cmake . \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/extra/usr \ + -DCMAKE_EXE_LINKER_FLAGS="-lpthread" \ + -DENABLE_LAPACK=yes \ + -DBUILD_HSI=no + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + # Remove files from hugin-tools + rm ${pkgdir}/extra/usr/share/hugin/data/celeste.model + rm ${pkgdir}/extra/usr/bin/autooptimiser + rm ${pkgdir}/extra/usr/bin/hugin_hdrmerge + rm ${pkgdir}/extra/usr/bin/pto2mk + rm ${pkgdir}/extra/usr/bin/linefind + rm ${pkgdir}/extra/usr/bin/nona + rm ${pkgdir}/extra/usr/bin/fulla + rm ${pkgdir}/extra/usr/bin/align_image_stack + rm ${pkgdir}/extra/usr/bin/celeste_standalone + rm ${pkgdir}/extra/usr/bin/vig_optimize + rm ${pkgdir}/extra/usr/bin/cpfind + rm ${pkgdir}/extra/usr/bin/tca_correct + rm ${pkgdir}/extra/usr/bin/pano_trafo + rm ${pkgdir}/extra/usr/bin/pano_modify + rm ${pkgdir}/extra/usr/bin/matchpoint + rm ${pkgdir}/extra/usr/bin/pto_gen + rm ${pkgdir}/extra/usr/bin/deghosting_mask + rm ${pkgdir}/extra/usr/bin/pto_merge + rm ${pkgdir}/extra/usr/bin/checkpto + rm ${pkgdir}/extra/usr/bin/autopano-noop.sh + rm ${pkgdir}/extra/usr/bin/cpclean + rm ${pkgdir}/extra/usr/lib/hugin/libhuginbase.so.0.0 + rm ${pkgdir}/extra/usr/lib/hugin/liblocalfeatures.so.0.0 + rm ${pkgdir}/extra/usr/lib/hugin/libceleste.so.0.0 + rm ${pkgdir}/extra/usr/lib/hugin/libflann_cpp.so.0.0 + rm ${pkgdir}/extra/usr/lib/hugin/libmakefilelib.so.0.0 + rm ${pkgdir}/extra/usr/lib/hugin/libhuginlines.so.0.0 + rm ${pkgdir}/extra/usr/lib/hugin/libhuginvigraimpex.so.0.0 + +} diff --git a/hugin/install b/hugin/install new file mode 100644 index 0000000..425edd1 --- /dev/null +++ b/hugin/install @@ -0,0 +1,15 @@ +post_install() { + kbuildsycoca4 &> /dev/null + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + /sbin/ldconfig -r . +} + +post_upgrade() { + post_install + /sbin/ldconfig -r . +} + +post_remove() { + post_install + /sbin/ldconfig -r . +}