summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Chuong2015-07-07 07:24:36 -0700
committerVinson Chuong2015-07-07 07:24:36 -0700
commit6020a9b33b0cea6dc829d80a9f15200480f807e7 (patch)
tree29cd15a8551d293225db5123fb73b7f541c73e6f
downloadaur-6020a9b33b0cea6dc829d80a9f15200480f807e7.tar.gz
v0.0.1-3
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD29
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1e1edd4c75f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = clidoc
+ pkgdesc = Generate man pages and help text from Markdown-formatted docs
+ pkgver = 0.0.1
+ pkgrel = 3
+ url = https://github.com/vinsonchuong/clidoc
+ arch = any
+ license = MIT
+ depends = ruby-ronn
+ depends = xidel
+ source = https://github.com/vinsonchuong/clidoc/archive/v0.0.1.tar.gz
+ md5sums = 46afdf1c2b9f152739f6c8618f29899c
+
+pkgname = clidoc
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7ac3e03396e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Vinson Chuong <vinsonchuong@gmail.com>
+pkgname="clidoc"
+pkgver="0.0.1"
+pkgrel="3"
+pkgdesc="Generate man pages and help text from Markdown-formatted docs"
+arch=("any")
+url="https://github.com/vinsonchuong/$pkgname"
+license=("MIT")
+depends=(
+ "ruby-ronn"
+ "xidel"
+)
+source=("$url/archive/v$pkgver.tar.gz")
+md5sums=('46afdf1c2b9f152739f6c8618f29899c')
+build ()
+{
+ cd "$srcdir/$pkgname-$pkgver";
+ [ -d 'doc' ] && bin/clidoc doc/*.md
+}
+package ()
+{
+ cd "$srcdir/$pkgname-$pkgver";
+ [ -d 'bin' ] && install -Dm755 -t "$pkgdir/usr/bin" bin/*;
+ [ -d 'help' ] && install -Dm644 -t "$pkgdir/usr/share/$pkgname/help" help/*;
+ [ -f 'README.md' ] && install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" 'README.md';
+ [ -d 'doc' ] && install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname/doc" doc/*.md;
+ [ -f 'LICENSE' ] && install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" 'LICENSE';
+ [ -d 'man' ] && install -Dm644 -t "$pkgdir/usr/share/man/man1" man/*
+}