summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Chuong2016-01-01 17:25:46 -0800
committerVinson Chuong2016-01-01 17:25:46 -0800
commitb3df884648cc043709016c8da68b2555913706a7 (patch)
tree3d6c19e2210ad978356b4f145d76aaab342a1265
parent6020a9b33b0cea6dc829d80a9f15200480f807e7 (diff)
downloadaur-b3df884648cc043709016c8da68b2555913706a7.tar.gz
v0.0.2-1
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD46
2 files changed, 34 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1e1edd4c75f..27175c90d22 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,17 @@
+# Generated by mksrcinfo v8
+# Sat Jan 2 01:25:46 UTC 2016
pkgbase = clidoc
pkgdesc = Generate man pages and help text from Markdown-formatted docs
- pkgver = 0.0.1
- pkgrel = 3
+ pkgver = 0.0.2
+ pkgrel = 1
url = https://github.com/vinsonchuong/clidoc
arch = any
license = MIT
+ depends = bash-common-parse-options
depends = ruby-ronn
depends = xidel
- source = https://github.com/vinsonchuong/clidoc/archive/v0.0.1.tar.gz
- md5sums = 46afdf1c2b9f152739f6c8618f29899c
+ source = https://github.com/vinsonchuong/clidoc/archive/v0.0.2-1.tar.gz
+ md5sums = 0ea95024814254553ec3fbf1c59f1dcc
pkgname = clidoc
diff --git a/PKGBUILD b/PKGBUILD
index 7ac3e03396e..1d3583abae5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,37 @@
# 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")
+pkgname=clidoc
+pkgver=0.0.2
+pkgrel=1
+pkgdesc=Generate\ man\ pages\ and\ help\ text\ from\ Markdown-formatted\ docs
+arch=(any)
+url=https://github.com/vinsonchuong/clidoc
+license=(MIT)
depends=(
- "ruby-ronn"
- "xidel"
+ bash-common-parse-options
+ ruby-ronn
+ xidel
)
-source=("$url/archive/v$pkgver.tar.gz")
-md5sums=('46afdf1c2b9f152739f6c8618f29899c')
+source=(https://github.com/vinsonchuong/clidoc/archive/v0.0.2-1.tar.gz)
+md5sums=('0ea95024814254553ec3fbf1c59f1dcc')
build ()
{
- cd "$srcdir/$pkgname-$pkgver";
+ cd "$srcdir/$pkgname-$pkgver-$pkgrel";
[ -d 'doc' ] && bin/clidoc doc/*.md
}
+check ()
+{
+ cd "${srcdir}/${pkgname}-${pkgver}-${pkgrel}";
+ if [[ -d 'spec' ]]; then
+ bats spec;
+ fi
+}
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/*
+ cd "${srcdir}/${pkgname}-${pkgver}-${pkgrel}";
+ [ -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/*
}