# $Id: PKGBUILD 201355 2013-12-09 10:50:13Z andrea $ # Maintainer: Andrea Scarpino pkgname=kdevelop-php pkgver=1.6.0 _pkgver=4.6.0 pkgrel=1 pkgdesc="PHP language and documentation plugin for KDevelop" arch=('i686' 'x86_64' 'mips64el') url="http://www.kdevelop.org/" license=('GPL') depends=('kdevelop') makedepends=('cmake' 'automoc4' 'kdevelop-pg-qt') replaces=('kdevelop-php-docs') conflicts=('kdevelop-php-docs') source=(http://download.kde.org/stable/kdevelop/${_pkgver}/src/${pkgname}-{,docs-}${pkgver}.tar.xz) sha1sums=('705b1f36a6fbbac207e8ca78619827206b75b48e' '98d7efe6f983c4b439c6cbdc40d427e14954298f') prepare() { mkdir build mkdir build-docs } build() { cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release make cd ../ # kdevelop-php-docs cd build-docs cmake ../${pkgname}-docs-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release make } package() { cd build make DESTDIR="${pkgdir}" install cd ../ # kdevelop-php-docs cd build-docs make DESTDIR="${pkgdir}" install }