mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 09:17:16 +08:00
added libksane4 (kde4)
This commit is contained in:
parent
3f2c71002f
commit
8370759e12
34
libksane4/PKGBUILD
Normal file
34
libksane4/PKGBUILD
Normal 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
|
||||
}
|
11
libksane4/libksane4.install
Normal file
11
libksane4/libksane4.install
Normal file
@ -0,0 +1,11 @@
|
||||
post_install() {
|
||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
Loading…
Reference in New Issue
Block a user