# # KDE SC Packages for Chakra, part of chakra-project.org # # maintainer (i686): Phil Miller # maintainer (x86_64): Manuel Tortosa # include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf # # package info # pkgname=kdeedu-marble _pkgname=marble pkgver=${_kdever} pkgrel=2 pkgdesc="Desktop Globe" url="http://kde.org/applications/education/marble/" screenshot="http://www.kde.org/images/screenshots/marble.png" arch=('i686' 'x86_64') url='http://www.kde.org' license=('GPL' 'LGPL' 'FDL') depends=("kde-runtime>=${_kdever}" "gpsd" "qt-mobility") makedepends=('cmake' 'automoc4') provides=('marble') groups=("kde" "kdeedu" "kde-uninstall") categories=('education') options=('docs' '!splithdr' 'splitdbg' 'log') install=${pkgname}.install source=("$_mirror/${_pkgname}-$_kdever.tar.xz") md5sums=(`grep ${_pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`) # create tarball: source PKGBUILD && mksource mksource() { rm -vRf ${_pkgname}-${pkgver} git clone git://anongit.kde.org/marble ${_pkgname}-${pkgver} rm -vRf ${_pkgname}-${pkgver}/.git pushd ${_pkgname}-${pkgver} popd tar -cvJf ${_pkgname}-${pkgver}.tar.xz ${_pkgname}-${pkgver}/* md5sum ${_pkgname}-${pkgver}.tar.xz } build() { cd ${srcdir}/${_pkgname}-${pkgver} cmake . -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' } package() { cd ${srcdir}/${_pkgname}-${pkgver} make DESTDIR=${pkgdir} install }