# Maintainer: Romain Porte pkgname=libgd-doc-git pkgver=gd.2.1.0.63.g7f735f6 pkgrel=1 pkgdesc="Reference documentation for libgd, HTML format." arch=('any') url="https://bitbucket.org/libgd/gd-libgd/" license=('unknown') makedepends=('git' 'naturaldocs') source=(git+https://bitbucket.org/libgd/gd-libgd/) md5sums=('SKIP') _gitname='gd-libgd' pkgver() { cd "$_gitname" git describe --tags | sed 's/-/./g' } build() { cd "$_gitname/docs/naturaldocs" ./run_docs.sh } package() { cd "$_gitname/docs/naturaldocs" mkdir -p $pkgdir/usr/share/doc/libgd cp -r html/ $pkgdir/usr/share/doc/libgd/ }