core/kactivities/PKGBUILD

45 lines
983 B
Bash
Raw Normal View History

#
# KDE SC Packages for Chakra, part of chakra-project.org
#
# maintainer: abveritas[at]chakra-project[dog]org>
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname="kactivities"
pkgver=${_kdever}
2012-08-30 06:22:20 +08:00
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc='API for using and interacting with Activities'
url='http://kde.org/'
license=('GPL' 'FDL')
depends=('kdelibs')
makedepends=('cmake' 'automoc4')
options=('docs' '!splithdr' 'splitdbg' 'log')
2012-03-30 08:52:54 +08:00
source=($_mirror/${pkgname}-$_kdever.tar.xz)
md5sums=(`grep ${pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`)
build() {
2012-06-10 04:05:59 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 -i ${startdir}/FindKactivities.patch
rm -rf build
mkdir build && cd build
2012-06-10 04:05:59 +08:00
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
2012-06-10 04:05:59 +08:00
cd $srcdir/$pkgname-$pkgver/build
make DESTDIR=$pkgdir install
}