# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/libkdegames4 # Include global configuration source ../kdeapps.conf pkgname=kdegames-libkdegames _pkgname=libkdegames pkgver=14.12.3 pkgrel=4 pkgdesc="Shared libraries for KDE games" arch=('x86_64') url='https://projects.kde.org/projects/kde/kdegames/libkdegames' license=('GPL' 'LGPL' 'FDL') depends=("kdelibs>=${_libsver}" 'openal') makedepends=('pkg-config' 'cmake' 'automoc4') groups=("kde" "kdegames" "kde-uninstall") options=('docs' 'debug') source=("http://download.kde.org/Attic/applications/${pkgver}/src/libkdegames-${pkgver}.tar.xz") sha1sums=('258d8130e7a38d1366466cef1d29ee2e13a456a5') build() { cd "${srcdir}/${_pkgname}-${pkgver}" cmake . \ -DCMAKE_BUILD_TYPE=${_build_type} \ -DCMAKE_INSTALL_PREFIX=${_installprefix} \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' make } package() { cd "${srcdir}/${_pkgname}-${pkgver}" make DESTDIR=${pkgdir} install }