desktop/kdeutils-printer-applet/PKGBUILD

47 lines
1.4 KiB
Bash

# Maintainer: abveritas@chakra-project[dog]org>
# Maintainer: Manuel Tortosa <manutortosa@chakra-project@org>
# Include global configuration
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname="kdeutils-printer-applet"
_pkgname="printer-applet"
arch=('x86_64')
pkgver=${_kdever}
pkgrel=1
pkgdesc="A system tray utility that shows current print jobs, printer warnings and errors"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
options=('docs' 'debug')
depends=("kde-runtime" "kde-baseapps>=${_kdever}" "kdebindings-pykde4>=${_kdever}" 'system-config-printer')
conflicts=("kdeutils-common")
groups=("kde" "kdeutils" "kde-uninstall")
categories=('utils')
install=kdeutils.install
makedepends=('pkg-config' 'cmake' 'automoc4' "kdelibs>=${_kdever}"
"kdepimlibs>=${_kdever}" "kde-baseapps>=${_kdever}"
"kde-workspace>=${_workspace_ver}" "kdebindings-pykde4>=${_kdever}")
source=($_mirror/${_pkgname}-$_kdever.tar.xz)
sha256sums=(`grep ${_pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
msg "starting build ..."
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
-DINSTALL_PRINTER_APPLET=TRUE \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make
}
package() {
cd ${srcdir}/${_pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
}