kdegraphics-kruler: updated for KF5

parent 504199cc
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
# Contributors: Manuel Tortosa <manutortosa@chakra-project.org>
# Contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/kdegraphics-kruler/
# Include global configuration
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
source ../kdeapps.conf
pkgname=kdegraphics-kruler
_pkgname=kruler
pkgname=kruler
pkgver=${_kdever}
pkgrel=1
pkgdesc='Screen ruler for measuring pixels'
url='http://kde.org/applications/graphics/kruler/'
arch=('x86_64')
license=('GPL'
'LGPL'
'FDL')
depends=("kde-runtime>=${_kdever}")
makedepends=('cmake'
'automoc4')
groups=('kde'
'kdegraphics'
'kde-uninstall')
license=('GPL' 'LGPL' 'FDL')
depends=('knotifications' 'kmxlgui')
makedepends=('extra-cmake-modules' 'kdoctools' 'python3')
groups=('kde' 'kdegraphics' 'kde-uninstall')
categories=('graphics')
options=('docs'
'!header'
'debug'
'log')
provides=('kdegraphics-kruler')
replaces=('kdegraphics-kruler')
conflicts=('kdegraphics-kruler')
options=('docs' '!header' 'debug' 'log')
install=${pkgname}.install
source=("$_mirror/${_pkgname}-$_kdever.tar.xz")
sha256sums=(`grep ${_pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
source=("$_mirror/${pkgname}-$_kdever.tar.xz")
sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
prepare() {
mkdir -p build
}
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
cmake . \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_SKIP_RPATH=ON \
-DKDE4_BUILD_TESTS=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make
cd build
cmake_kf5 ../${pkgname}-${pkgver}
make
}
package() {
cd ${srcdir}/${_pkgname}-${pkgver}
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment