core/hugin-tools/PKGBUILD

47 lines
1.3 KiB
Bash
Raw Normal View History

2011-08-01 00:19:33 +08:00
pkgname=hugin-tools
_pkgname=hugin
2016-09-25 00:54:57 +08:00
pkgver=2016.2.0
2017-03-17 23:59:41 +08:00
pkgrel=4
2011-08-01 00:19:33 +08:00
pkgdesc="Hugin libs and tools to be used by Kipi-plugins"
arch=('x86_64')
2011-08-01 00:19:33 +08:00
url="http://hugin.sourceforge.net/"
license=('LGPL')
2016-04-21 06:00:31 +08:00
depends=('boost-libs' 'enblend-enfuse' 'exiv2>=0.25' 'fftw' 'perl-exiftool' 'openexr' 'libpano13>=2.9.19'
2017-03-17 23:59:41 +08:00
'sqlite3' 'lapack' 'glew' 'desktop-file-utils' 'icu' 'libxt' 'libpng' 'libxrandr' 'openexr')
makedepends=('zip' 'cmake' 'boost' 'mesa' 'tclap')
2012-11-26 07:02:28 +08:00
source=("http://downloads.sourceforge.net/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2")
2016-09-25 00:54:57 +08:00
sha1sums=('9d28609d973fa72b95b1e2506cf1de7d24578e67')
prepare() {
cd "${srcdir}/${_pkgname}-${pkgver}"
}
2011-08-01 00:19:33 +08:00
build() {
cd "${srcdir}"
2012-11-26 07:02:28 +08:00
mkdir -p build
cd build
2011-08-01 00:19:33 +08:00
# this makes possible to compile all the hugin tools without GUis
sed -i -e "s~FIND_PACKAGE(wxWidgets REQUIRED)~~g" ${srcdir}/${_pkgname}-${pkgver}/CMakeLists.txt
mkdir -p ${srcdir}/${_pkgname}-${pkgver}/src/hugin_base/PT
2011-08-01 00:19:33 +08:00
cmake "${srcdir}/${_pkgname}-${pkgver}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_EXE_LINKER_FLAGS="-lpthread" \
-DENABLE_LAPACK=yes \
-DBUILD_HSI=no
2011-08-01 00:19:33 +08:00
make
}
package() {
2011-08-01 00:19:33 +08:00
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
2013-05-12 00:34:59 +08:00
# Remove frontend files
2015-01-26 22:30:57 +08:00
rm -rf -v "${pkgdir}"/usr/share/applications
rm -rf -v "${pkgdir}"/usr/share/man
rm -rf -v "${pkgdir}"/usr/share/locale
2011-08-01 00:19:33 +08:00
}