summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Dewender2016-02-05 21:57:35 +0100
committerJohannes Dewender2016-02-05 21:57:35 +0100
commitb634ab69e248b9df20efc3c8763767b59e187d4d (patch)
tree0bae998f647741f9a77f085d45215b885c4b0d0d
parent4c57f5fcdf7355096d930a3193f455df0b35b2c7 (diff)
downloadaur-b634ab69e248b9df20efc3c8763767b59e187d4d.tar.gz
PHP 7 not working, use php56
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD26
2 files changed, 20 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a0d9a91c470..68514d64c72 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,16 @@
+# Generated by mksrcinfo v8
+# Fri Feb 5 20:55:46 UTC 2016
pkgbase = phpdocumentor2
pkgdesc = Documentation Generator for PHP
pkgver = 2.8.5
- pkgrel = 1
+ pkgrel = 2
url = http://www.phpdoc.org/
install = phpdocumentor2.install
arch = any
license = custom
+ depends = php56
depends = graphviz
- depends = php-xsl
+ depends = php56-xsl
conflicts = phpdocumentor
source = http://pear.phpdoc.org/get/phpDocumentor-2.8.5.tgz
source = phpdocumentor2.install
diff --git a/PKGBUILD b/PKGBUILD
index a423b670b34..ed747adcceb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,16 @@
-# Maintainer: Michael Lass <bevan@bi-co.net>
+# Contributor: Johannes Dewender arch at JonnyJD dot net
+# Contributor: Michael Lass <bevan@bi-co.net>
-# This PKGBUILD is maintained on github:
-# https://github.com/michaellass/AUR
pkgname=phpdocumentor2
_pkgreal=phpDocumentor
pkgver=2.8.5
-pkgrel=1
+pkgrel=2
pkgdesc="Documentation Generator for PHP"
arch=('any')
url="http://www.phpdoc.org/"
license=('custom')
-depends=('graphviz' 'php-xsl')
+depends=('php56' 'graphviz' 'php56-xsl')
conflicts=('phpdocumentor')
install=$pkgname.install
source=("http://pear.phpdoc.org/get/${_pkgreal}-${pkgver}.tgz"
@@ -19,20 +18,25 @@ source=("http://pear.phpdoc.org/get/${_pkgreal}-${pkgver}.tgz"
sha256sums=('17b20d7648392e72064590347f6092f80d67f8c418d759ed54982716dfafebf2'
'b6066d62de3b131ac4d71a13eea8c6419f62282c7e229dc55b06acf0c8b5b60a')
+prepare() {
+ cd ${srcdir}/${_pkgreal}-${pkgver}
+ sed -i -e '1s|/usr/bin/env php$|/usr/bin/env php56|' bin/phpdoc
+}
+
package() {
# Install main application
install -dm755 ${pkgdir}/usr/share/webapps
- mv ${srcdir}/${_pkgreal}-${pkgver} ${pkgdir}/usr/share/webapps/${pkgname}
+ cp -r ${srcdir}/${_pkgreal}-${pkgver} ${pkgdir}/usr/share/webapps/${pkgname}
chmod -R a+r ${pkgdir}/usr/share/webapps/${pkgname}
# Move LICENSE, README and CONTRIBUTING
- install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
- install -dm755 ${pkgdir}/usr/share/doc/${pkgname}
- mv ${pkgdir}/usr/share/webapps/${pkgname}/LICENSE \
+ #install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
+ #install -dm755 ${pkgdir}/usr/share/doc/${pkgname}
+ install -Dm644 ${pkgdir}/usr/share/webapps/${pkgname}/LICENSE \
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
- mv ${pkgdir}/usr/share/webapps/${pkgname}/README.md \
+ install -Dm644 ${pkgdir}/usr/share/webapps/${pkgname}/README.md \
${pkgdir}/usr/share/doc/${pkgname}/README
- mv ${pkgdir}/usr/share/webapps/${pkgname}/CONTRIBUTING.md \
+ install -Dm644 ${pkgdir}/usr/share/webapps/${pkgname}/CONTRIBUTING.md \
${pkgdir}/usr/share/doc/${pkgname}/CONTRIBUTING
install -dm755 ${pkgdir}/usr/bin