# $Id: PKGBUILD 153918 2012-03-20 14:06:28Z andrea $ # Maintainer: Andrea Scarpino pkgname=kdevelop-php pkgver=1.3.0 _pkgver=4.3.0 pkgrel=1 pkgdesc="PHP language and documentation plugin for KDevelop/Quanta" arch=('i686' 'x86_64' 'mips64el') url="http://www.kdevelop.org/" license=('GPL') depends=('kdevelop-pg-qt') makedepends=('cmake' 'automoc4') replaces=('kdevelop-php-docs') conflicts=('kdevelop-php-docs') source=(http://download.kde.org/stable/kdevelop/${_pkgver}/src/${pkgname}-{,docs-}${pkgver}.tar.bz2) sha1sums=('8ae280cf5085c473b6b95b3683629b49d19dfe12' '398001b7d192af4c71bddb246dfd59d61db02618') build() { cd "${srcdir}" mkdir build cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release make # kdevelop-php-docs cd "${srcdir}" mkdir build-docs cd build-docs cmake ../${pkgname}-docs-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release make } package() { cd "${srcdir}/build" make DESTDIR="${pkgdir}" install # kdevelop-php-docs cd "${srcdir}"/build-docs make DESTDIR="${pkgdir}" install }