updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / phplint / PKGBUILD
blob7d845da94278acd11774d0a51486d3f37096fd02
1 # Maintainer: Laurent O. Coderre <filosofem at gmail dot com>
3 pkgname=phplint
4 pkgdesc="PHPLint is a validator and documentator for PHP 4 and PHP 5 programs."
5 pkgver=0.9_20090802
6 pkgrel=4
7 arch=('i686' 'x86_64')
8 url='http://www.icosaedro.it/phplint/'
9 license=('custom')
10 depends=('gc')
11 source=("http://www.icosaedro.it/phplint/${pkgname}-pure-c-${pkgver}.tar.gz")
12 md5sums=('1f98f9a81105b3fa03ec8fba4fcca285')
14 build() {
15         ### Compile
16         cd ${srcdir}/${pkgbase}-pure-c-${pkgver}
17         ./configure
18         ./compile || return 1
20         ### Create the paths and copy files
21         mkdir -p ${pkgdir}/usr/share/phplint/
22         mkdir -p ${pkgdir}/usr/share/licences/phplint/
23         mkdir -p ${pkgdir}/usr/bin/
24         cp ${srcdir}/${pkgbase}-pure-c-${pkgver}/LICENSE ${pkgdir}/usr/share/licences/phplint/
25         cp ${srcdir}/${pkgbase}-pure-c-${pkgver}/src/phplint ${pkgdir}/usr/bin/
26         cp -R ${srcdir}/${pkgbase}-pure-c-${pkgver}/modules ${pkgdir}/usr/share/phplint/
28         ### Change the rights for module files
29         chmod a+r ${pkgdir}/usr/share/phplint/modules/*