mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/vigra to 1.11.1-4
This commit is contained in:
parent
eb9f54464c
commit
9e4acb4701
1 changed files with 27 additions and 20 deletions
|
@ -1,5 +1,6 @@
|
||||||
# $Id$
|
# $Id$
|
||||||
# Maintainer: AndyRTR <andyrtr@archlinux.org>
|
# Maintainer: Bruno Pagani <archange@archlinux.org>
|
||||||
|
# Contributor: AndyRTR <andyrtr@archlinux.org>
|
||||||
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
|
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
|
||||||
|
|
||||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
|
@ -8,32 +9,39 @@
|
||||||
pkgbase=vigra
|
pkgbase=vigra
|
||||||
pkgname=('vigra' 'vigra-doc')
|
pkgname=('vigra' 'vigra-doc')
|
||||||
pkgver=1.11.1
|
pkgver=1.11.1
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
arch=('i686' 'x86_64')
|
pkgdesc="Computer vision library"
|
||||||
|
arch=('x86_64')
|
||||||
url="https://ukoethe.github.io/vigra/"
|
url="https://ukoethe.github.io/vigra/"
|
||||||
license=('custom:MIT')
|
license=('custom:MIT')
|
||||||
makedepends=(# runtime deps
|
makedepends=(# runtime deps
|
||||||
'libpng' 'libtiff' 'openexr' 'gcc-libs' 'sh' 'hdf5' 'fftw'
|
'libpng' 'libtiff' 'openexr' 'gcc-libs' 'sh' 'hdf5' 'fftw'
|
||||||
# additional makedeps
|
# additional makedeps
|
||||||
'cmake' 'python-nose' 'doxygen' 'python-sphinx' 'boost' 'python-numpy')
|
'cmake' 'python-nose' 'doxygen' 'python-sphinx' 'boost' 'python-numpy')
|
||||||
source=(https://github.com/ukoethe/vigra/releases/download/Version-${pkgver//./-}/vigra-${pkgver}-src.tar.gz)
|
source=("https://github.com/ukoethe/vigra/releases/download/Version-${pkgver//./-}/vigra-${pkgver}-src.tar.gz")
|
||||||
sha256sums=('a5564e1083f6af6a885431c1ee718bad77d11f117198b277557f8558fa461aaf')
|
sha256sums=('a5564e1083f6af6a885431c1ee718bad77d11f117198b277557f8558fa461aaf')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
mkdir -p build
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}"/${pkgbase}-${pkgver}
|
cd build
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
cmake ../${pkgbase}-${pkgver} \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DPYTHON_EXECUTABLE=/usr/bin/python \
|
-DPYTHON_EXECUTABLE=/usr/bin/python \
|
||||||
-DWITH_OPENEXR=true \
|
-DWITH_OPENEXR=true \
|
||||||
-DWITH_VIGRANUMPY=1 \
|
-DWITH_VIGRANUMPY=1 \
|
||||||
|
-DDOCDIR=../build/doc \
|
||||||
-DDOCINSTALL=share/doc \
|
-DDOCINSTALL=share/doc \
|
||||||
$([ $CARCH == arm ] && echo "-DCMAKE_CXX_FLAGS=-std=c++11 -DWITH_BOOST_THREAD=1")
|
$([ $CARCH == arm ] && echo "-DCMAKE_CXX_FLAGS=-std=c++11 -DWITH_BOOST_THREAD=1")
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
#check() {
|
check() {
|
||||||
# cd "${srcdir}"/${pkgname}-${pkgver}
|
cd build
|
||||||
# make -j1 -k check #|| /bin/true # i686 fails
|
make -j1 -k check || warning "Tests failed" # https://github.com/ukoethe/vigra/issues/409
|
||||||
#}
|
}
|
||||||
|
|
||||||
package_vigra() {
|
package_vigra() {
|
||||||
pkgdesc="Computer vision library"
|
pkgdesc="Computer vision library"
|
||||||
|
@ -41,25 +49,24 @@ package_vigra() {
|
||||||
optdepends=('python: for python bindings'
|
optdepends=('python: for python bindings'
|
||||||
'boost-libs: for python bindings')
|
'boost-libs: for python bindings')
|
||||||
|
|
||||||
cd "${srcdir}"/${pkgbase}-${pkgver}
|
cd build
|
||||||
make DESTDIR="${pkgdir}" install
|
make DESTDIR="${pkgdir}" install
|
||||||
# license
|
|
||||||
install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
install -Dm644 ${srcdir}/${pkgbase}-${pkgver}/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
||||||
|
|
||||||
# remove doc
|
# Remove doc
|
||||||
rm -rf "${pkgdir}"/usr/share/doc
|
rm -rf "${pkgdir}"/usr/share/doc
|
||||||
}
|
}
|
||||||
|
|
||||||
package_vigra-doc() {
|
package_vigra-doc() {
|
||||||
pkgdesc="Computer vision library - documentation and examples"
|
pkgdesc="Computer vision library - documentation and examples"
|
||||||
#depends=('vigra')
|
#arch=('any') # Not supported for now, maybe later
|
||||||
#arch=('any')
|
|
||||||
|
|
||||||
cd "${srcdir}"/${pkgbase}-${pkgver}
|
cd build
|
||||||
make DESTDIR="${pkgdir}" install
|
make DESTDIR="${pkgdir}" install
|
||||||
# cleanup
|
|
||||||
|
# Remove vigra package content
|
||||||
rm -rf "${pkgdir}"/usr/{bin,include,lib}
|
rm -rf "${pkgdir}"/usr/{bin,include,lib}
|
||||||
|
|
||||||
# license
|
install -Dm644 ${srcdir}/${pkgbase}-${pkgver}/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
||||||
install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue