desktop/kdevelop-php/PKGBUILD
2015-10-13 08:33:44 +02:00

51 lines
1.2 KiB
Bash

# maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
pkgbase=kdevelop-php
pkgname=('kdevelop-php' 'kdevelop-php-docs')
pkgver=1.7.2
_pkgver=4.7.2
pkgrel=1
pkgdesc="PHP plugin for Kdevelop"
arch=('x86_64')
url="http://www.kdevelop.org/"
license=('GPL')
depends=("kdevelop=${_pkgver}" "kdevelop-pg-qt")
makedepends=('cmake' 'automoc4')
categories=('programming')
options=('!makeflags')
source=(http://download.kde.org/stable/kdevelop/${_pkgver}/src/${pkgbase}-{,docs-}${pkgver}.tar.xz)
sha1sums=('efdc58214b8c1eb32b4bbd827dc6d6e942355c9c'
'989e857d40fb16cb3ac207fab73fb024a94d7554')
build() {
cd "${srcdir}"
mkdir build
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make
cd "${srcdir}"
mkdir build-docs
cd build-docs
# kdevelop-php-docs
cmake ../${pkgname}-docs-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make
}
package_kdevelop-php() {
optdepends=('kdevelop-php-docs: documentation')
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
}
package_kdevelop-php-docs() {
pkgdesc="Documentation for kdevelop-php"
depends=("kdevelop-php=${pkgver}")
cd "${srcdir}"/build-docs
make DESTDIR="${pkgdir}" install
}