mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-01-23 17:33:32 +08:00
Add hugin
This commit is contained in:
parent
381ab8cacb
commit
5e62374079
64
hugin/PKGBUILD
Normal file
64
hugin/PKGBUILD
Normal file
@ -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
|
||||
|
||||
}
|
15
hugin/install
Normal file
15
hugin/install
Normal file
@ -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 .
|
||||
}
|
Loading…
Reference in New Issue
Block a user