kdegraphics-libkdcraw: Update

This commit is contained in:
totte 2013-12-18 11:23:57 +00:00
parent f39acb0501
commit 4d4adbaa21

View File

@ -1,7 +1,6 @@
# Maintainer: Manuel Tortosa <manutortosa@chakra-project@org>
# Maintainer: Manuel Tortosa <manutortosa@chakra-project@org>
# Contributors: H W Tovetjärn (totte) <totte@tott.es>
# Andrea Scarpino <andrea@archlinux.org>
# Include global configuration
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
@ -10,30 +9,42 @@ pkgname=kdegraphics-libkdcraw
_pkgname=libkdcraw
pkgver=${_kdever}
pkgrel=1
pkgdesc="A library for decoding RAW picture files"
pkgdesc="A C++ library for decoding RAW picture files"
arch=('x86_64')
url='http://www.kde.org'
license=('GPL' 'LGPL' 'FDL')
depends=("kdelibs>=${_kdever}" 'lcms' 'libjpeg')
makedepends=('pkg-config' 'cmake' 'automoc4')
url="https://projects.kde.org/projects/kde/kdegraphics/libs/libkdcraw"
license=('GPL'
'LGPL'
'FDL')
depends=("kdelibs>=${_kdever}"
'lcms'
'libjpeg'
'libraw')
makedepends=('pkg-config'
'cmake'
'automoc4')
source=("$_mirror/${_pkgname}-$_kdever.tar.xz")
sha1sums=(`grep ${_pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
groups=("kde" "kdegraphics" "kde-uninstall")
conflicts=('kdegraphics-doc' 'libkdcraw')
groups=('kde'
'kdegraphics'
'kde-uninstall')
conflicts=('kdegraphics-doc'
'libkdcraw')
provides=('libkdcraw')
options=('docs' '!header' 'debug' 'log')
options=('docs'
'!header'
'debug'
'log')
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
cd ${srcdir}/${_pkgname}-${pkgver}
cmake . \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
}
package() {
cd ${srcdir}/${_pkgname}-${pkgver}
make DESTDIR=${pkgdir} install || return 1
cd ${srcdir}/${_pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
}