core/khelpcenter/PKGBUILD

35 lines
966 B
Bash

#contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/khelpcenter
# from KaOS: https://github.com/KaOSx/apps/blob/master/khelpcenter/PKGBUILD
source ../plasma.conf
pkgname=khelpcenter
pkgver=${PVersion}
pkgrel=1
pkgdesc="Application to show KDE Applications' documentation"
arch=('x86_64')
url='https://projects.kde.org/projects/kde/workspace/khelpcenter'
license=('LGPL')
depends=('khtml' 'kdelibs4support' 'kcmutils')
makedepends=('extra-cmake-modules' 'kdoctools')
groups=('plasma')
options=("debug")
conflicts=('khelpcenter4')
source=("${PServer}/${pkgver}/${pkgname}-${PSubVersion}.tar.xz")
sha256sums=( $(getSum ${pkgname}) )
prepare() {
mkdir -p build
sed -e "s|add_subdirectory(pt_BR)|#add_subdirectory(pt_BR)|" -i ${srcdir}/$pkgname-$pkgver/doc/CMakeLists.txt
}
build() {
cd build
cmake_kf5 ../${pkgname}-${pkgver}
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}