# Include global configuration source ../kdeapps.conf _default_wp="Elarun" pkgname="kde-wallpapers" pkgver=${_kdever} pkgrel=1 pkgdesc="KDE Wallpapers" url="http://www.kde.org" license="GPL" arch=('any') options=('!header' 'debug' 'log') groups=("kde" "kde-uninstall") depends=('kdelibs') replaces=('kde-workspace-wallpapers') makedepends=('automoc4') source=("$_mirror/${pkgname}-$_kdever.tar.xz") sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d" " -f1`) build() { cd ${srcdir}/${pkgname}-${pkgver} cmake . \ -DCMAKE_BUILD_TYPE=${_build_type} \ -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 rm -rfv ${pkgdir}/usr/share/wallpapers/${_default_wp} }