mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
libkipi-git: added for kscreengenie
This commit is contained in:
parent
ff902b02f2
commit
9b62a6a3ea
43
libkipi-git/PKGBUILD
Normal file
43
libkipi-git/PKGBUILD
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
pkgname=libkipi-git
|
||||||
|
pkgver=r1147.a9743e7
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc='An interface to use kipi-plugins from a KDE application'
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url='http://www.kde.org'
|
||||||
|
license=('GPL' 'LGPL' 'FDL')
|
||||||
|
depends=('qt5-base' 'hicolor-icon-theme' 'kxmlgui')
|
||||||
|
makedepends=('git' 'extra-cmake-modules')
|
||||||
|
conflicts=('libkipi')
|
||||||
|
provides=('libkipi')
|
||||||
|
groups=('digikam-git')
|
||||||
|
source=('libkipi::git+git://anongit.kde.org/libkipi')
|
||||||
|
md5sums=('SKIP')
|
||||||
|
install=libkipi-git.install
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "${srcdir}/libkipi"
|
||||||
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||||
|
}
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
if [[ -d "${srcdir}/build" ]]; then
|
||||||
|
msg "Cleaning the previous build directory..."
|
||||||
|
rm -rf "${srcdir}/build"
|
||||||
|
fi
|
||||||
|
mkdir "${srcdir}/build"
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "${srcdir}/build"
|
||||||
|
cmake "${srcdir}/libkipi" -DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DLIB_INSTALL_DIR=lib \
|
||||||
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
|
||||||
|
-DBUILD_TESTING=OFF
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/build"
|
||||||
|
make DESTDIR="${pkgdir}" install
|
||||||
|
}
|
12
libkipi-git/libkipi-git.install
Normal file
12
libkipi-git/libkipi-git.install
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
post_install() {
|
||||||
|
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||||
|
update-desktop-database -q
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
post_install
|
||||||
|
}
|
||||||
|
|
||||||
|
post_remove() {
|
||||||
|
post_install
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user