From ca1559634f6497cfbed903b24ba9afde1581980b Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 29 Dec 2017 15:09:53 +0100 Subject: Added the basics for the PKGCONFIG file Signed-off-by: Olivier Gayot --- PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 PKGBUILD (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..c514b01 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Olivier Gayot + +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" +} -- cgit v1.2.3