git » libksane.git » commit 83b9b57

KDE Applications 15.12

author Antonio Rojas
2015-12-16 07:08:40 UTC
committer Antonio Rojas
2015-12-16 07:08:40 UTC
parent 951c263f376087c9032f0fd41fc3ab122f4ebd50

KDE Applications 15.12

PKGBUILD +20 -17

diff --git a/PKGBUILD b/PKGBUILD
index 3840a4f..ae5a100 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,36 @@
 # Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Maintainer: Antonio Rojas <arojas@archlinux.org>
 # Contributor: Andrea Scarpino <andrea@archlinux.org>
 
 pkgname=libksane
-pkgver=15.08.3
+pkgver=15.12.0
 pkgrel=1
 pkgdesc="An image scanning library"
 url="https://projects.kde.org/projects/kde/kdegraphics/libs/libksane"
-arch=('i686' 'x86_64')
-license=('GPL' 'LGPL' 'FDL')
-depends=('kdelibs' 'sane')
-makedepends=('cmake' 'automoc4')
-replaces=('kdegraphics-libs')
-conflicts=('kdegraphics-libs')
-install=${pkgname}.install
-source=("http://download.kde.org/stable/applications/${pkgver}/src/${pkgname}-${pkgver}.tar.xz")
-sha1sums=('2707d84bdcd0ec568ff47066012c3086b07477cc')
+arch=(i686 x86_64)
+license=(GPL LGPL FDL)
+depends=(ktextwidgets kwallet sane)
+makedepends=(extra-cmake-modules)
+install=$pkgname.install
+source=("http://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz")
+sha1sums=('0c69697a66d6d0908d3822ecebedb08c2c424942')
 
-build() {
-  cd "${srcdir}"
+prepare() {
   mkdir -p build
+}
+
+build() {
   cd build
-  cmake ../${pkgname}-${pkgver} \
+  cmake ../$pkgname-$pkgver \
     -DCMAKE_BUILD_TYPE=Release \
-    -DKDE4_BUILD_TESTS=OFF \
-    -DCMAKE_INSTALL_PREFIX=/usr
+    -DBUILD_TESTING=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
   make
 }
 
 package() {
-  cd "${srcdir}"/build
-  make DESTDIR="${pkgdir}" install
+  cd build
+  make DESTDIR="$pkgdir" install
 }