summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorOlivier Gayot <og@satcom1.com>2017-12-29 15:09:53 +0100
committerOlivier Gayot <og@satcom1.com>2017-12-29 17:17:14 +0100
commitca1559634f6497cfbed903b24ba9afde1581980b (patch)
tree06676e5e7a510a2e8a9675cea6268bf482f59dc8 /PKGBUILD
parent61af94fc1800d40144a30d7e00cb9db20408f95d (diff)
Added the basics for the PKGCONFIG file
Signed-off-by: Olivier Gayot <og@satcom1.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..c514b01
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Olivier Gayot <olivier.gayot@sigexec.com>
+
+pkgname=phpdoc-git
+pkgver=1
+pkgrel=1
+pkgdesc="Read the documentation of PHP functions in your terminal"
+arch=('any')
+url="https://git.sigexec.com/cgit.cgi/phpdoc.git/"
+license=('BSD')
+makedepends=('git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("${pkgname}::git+https://git.sigexec.com/cgit.cgi/${pkgname%-git}.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname}"
+
+ ## Git, tags available
+ # printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+
+ # Git, no tags available
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+
+ install -D phpdoc.sh "${pkgdir}/usr/bin/phpdoc"
+}