# $Id: PKGBUILD 183285 2013-04-20 16:41:18Z heftig $ # Maintainer: Gaetan Bisson # Contributor: Tobias Kieslich # Contributor: Giovanni Scafora # Contributor: Dominik Ryba pkgname=hugin pkgver=2012.0.0 pkgrel=5 pkgdesc='Panorama photo stitcher' url='http://hugin.sourceforge.net/' license=('GPL') arch=('i686' 'x86_64' 'mips64el') depends=('wxgtk' 'boost-libs' 'enblend-enfuse' 'exiv2' 'autopano-sift-c' 'lensfun' 'lapack' 'make' 'perl-image-exiftool' 'desktop-file-utils') 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=/usr \ -DCMAKE_EXE_LINKER_FLAGS="-lpthread" \ -DENABLE_LAPACK=yes \ -DBUILD_HSI=no make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install }