2014-06-22 20:22:30 +08:00
|
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
|
|
|
|
source ../plasma.conf
|
|
|
|
|
|
|
|
pkgname=kio-extras
|
|
|
|
pkgver=${PVersion}
|
2014-08-13 05:28:08 +08:00
|
|
|
pkgrel=1
|
2014-06-22 20:22:30 +08:00
|
|
|
pkgdesc="KDE's screen management library"
|
2014-10-23 03:29:25 +08:00
|
|
|
arch=('x86_64')
|
2014-06-22 20:22:30 +08:00
|
|
|
url='projects.kde.org/'
|
|
|
|
license=('LGPL')
|
2014-12-01 13:27:04 +08:00
|
|
|
depends=('kdelibs4support' 'khtml' 'kdnssd' 'libssh' 'smbclient' 'exiv2' 'openexr' 'openslp')
|
|
|
|
makedepends=('extra-cmake-modules' 'kdoctools' 'python')
|
2014-06-22 20:22:30 +08:00
|
|
|
checkdepends=("cmake")
|
|
|
|
groups=('plasma')
|
|
|
|
options=("debug")
|
2014-12-01 13:27:04 +08:00
|
|
|
source=("${PServer}/${pkgver}/${pkgname}-${PSubVersion}.tar.xz"
|
|
|
|
'sanitize-input.patch')
|
|
|
|
sha256sums=( $(getSum ${pkgname})
|
|
|
|
'9ddbbe633373c16c42016a5118fc1e9bdc684f82fbf77a6bcbe0d1902c68e176')
|
2014-06-22 20:22:30 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
2014-12-01 13:27:04 +08:00
|
|
|
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
patch -p1 -i "${srcdir}"/sanitize-input.patch
|
2014-06-22 20:22:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
2014-12-01 13:27:04 +08:00
|
|
|
cmake_kf5 ../${pkgname}-${pkgver} \
|
|
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python3
|
2014-06-22 20:22:30 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd build
|
|
|
|
make test || return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2014-12-01 13:27:04 +08:00
|
|
|
|
|
|
|
# conflicts with kde-runtime
|
|
|
|
rm "$pkgdir"/usr/lib/libmolletnetwork.so
|
|
|
|
mv "$pkgdir"/usr/share/config.kcfg/jpegcreatorsettings{,5}.kcfg
|
2014-06-22 20:22:30 +08:00
|
|
|
}
|