desktop/kdevelop-php/PKGBUILD
2014-09-14 00:56:43 +00:00

52 lines
1.3 KiB
Bash

# maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
pkgbase=kdevelop-php
pkgname=('kdevelop-php' 'kdevelop-php-docs')
pkgver=1.7.0
_pkgver=4.7.0
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/${pkgname}-${pkgver}.tar.xz"
"http://download.kde.org/stable/kdevelop/${_pkgver}/src/${pkgname}-docs-${pkgver}.tar.xz")
sha1sums=('e3a41f7700af56840fd60219e083b761180b8b8c'
'487b60f591929e7a8292ef8f1c555a0243f1176a')
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
}