summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Chuong2016-02-02 07:28:25 -0800
committerVinson Chuong2016-02-02 07:28:25 -0800
commit16255000205519f821472934a81fee4529d91944 (patch)
treedfdcd9e4cfbe1c904b5e9236b3bc1772b0348781
parentb3df884648cc043709016c8da68b2555913706a7 (diff)
downloadaur-clidoc.tar.gz
v0.0.3-1
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD32
2 files changed, 19 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 27175c90d22..7820f45a662 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,16 @@
# Generated by mksrcinfo v8
-# Sat Jan 2 01:25:46 UTC 2016
+# Tue Feb 2 15:28:25 UTC 2016
pkgbase = clidoc
pkgdesc = Generate man pages and help text from Markdown-formatted docs
- pkgver = 0.0.2
+ pkgver = 0.0.3
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.2-1.tar.gz
- md5sums = 0ea95024814254553ec3fbf1c59f1dcc
+ source = https://github.com/vinsonchuong/clidoc/archive/v0.0.3-1.tar.gz
+ md5sums = 87793ed0d132d6d77790e192be969ee7
pkgname = clidoc
diff --git a/PKGBUILD b/PKGBUILD
index 1d3583abae5..ec664c1a48a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,37 +1,35 @@
# Maintainer: Vinson Chuong <vinsonchuong@gmail.com>
pkgname=clidoc
-pkgver=0.0.2
+pkgver=0.0.3
pkgrel=1
pkgdesc=Generate\ man\ pages\ and\ help\ text\ from\ Markdown-formatted\ docs
arch=(any)
url=https://github.com/vinsonchuong/clidoc
license=(MIT)
depends=(
- bash-common-parse-options
ruby-ronn
xidel
)
-source=(https://github.com/vinsonchuong/clidoc/archive/v0.0.2-1.tar.gz)
-md5sums=('0ea95024814254553ec3fbf1c59f1dcc')
+source=(https://github.com/vinsonchuong/clidoc/archive/v0.0.3-1.tar.gz)
+md5sums=('87793ed0d132d6d77790e192be969ee7')
build ()
{
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}-${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/*
+ [[ -d 'bin' ]] && install -Dm755 -t "${pkgdir}/usr/bin" bin/*;
+ if [[ -d 'lib' ]]; then
+ for file in $(find 'lib' -type 'f');
+ do
+ install -D -m "$(stat -c '%a' "$file")" "$file" "${pkgdir}/usr/lib/${pkgname}/${file#'lib/'}";
+ done;
+ fi;
+ [[ -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/*
}