summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Porte2015-07-23 05:04:01 +0200
committerRomain Porte2015-07-23 05:04:01 +0200
commitabddc528bb3372d626efd1fdadcc4832b213ac00 (patch)
tree09389dddba2cfeb383a032dfe40ba5c94c82b013
downloadaur-abddc528bb3372d626efd1fdadcc4832b213ac00.tar.gz
Initial commit
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD32
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..55fa7b68b2e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = libgd-doc-git
+ pkgdesc = Reference documentation for libgd, HTML format.
+ pkgver = gd.2.1.1.30.g10a1b82
+ pkgrel = 1
+ url = https://bitbucket.org/libgd/gd-libgd/
+ arch = any
+ license = unknown
+ makedepends = git
+ makedepends = naturaldocs
+ source = git+https://bitbucket.org/libgd/gd-libgd/
+ md5sums = SKIP
+
+pkgname = libgd-doc-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0c83f38f399
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Romain Porte <microjoe@mailoo.org>
+
+pkgname=libgd-doc-git
+pkgver=gd.2.1.1.30.g10a1b82
+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/
+}