added libksane4 (kde4)

This commit is contained in:
AlmAck 2015-12-06 17:37:08 +00:00
parent 3f2c71002f
commit 8370759e12
2 changed files with 45 additions and 0 deletions

34
libksane4/PKGBUILD Normal file
View File

@ -0,0 +1,34 @@
pkgname=libksane4
_pkgname=libksane
pkgver=15.08.3
pkgrel=1
pkgdesc="An image scanning library"
url="https://projects.kde.org/projects/kde/kdegraphics/libs/libksane"
arch=(x86_64)
license=(GPL LGPL FDL)
depends=(kdelibs sane)
makedepends=(cmake automoc4)
replaces=('libksane<15.11')
conflicts=('libksane<15.11')
install=$pkgname.install
source=("http://download.kde.org/stable/applications/$pkgver/src/$_pkgname-$pkgver.tar.xz")
sha1sums=('2707d84bdcd0ec568ff47066012c3086b07477cc')
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../$_pkgname-$pkgver \
-DCMAKE_BUILD_TYPE=Release \
-DKDE4_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd build
make DESTDIR="$pkgdir" install
}

View File

@ -0,0 +1,11 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}