diff options
author | Vinson Chuong | 2016-01-17 12:23:50 -0800 |
---|---|---|
committer | Vinson Chuong | 2016-01-17 12:23:50 -0800 |
commit | 797c92ec23f842abf8adf36b96943b03935da3b2 (patch) | |
tree | c8f31f32ea308d20c169cdab066e4616bb5e9ba3 | |
download | aur-797c92ec23f842abf8adf36b96943b03935da3b2.tar.gz |
v0.0.1-1
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..56d5d33551c9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Sun Jan 17 20:23:50 UTC 2016 +pkgbase = bash-common-bundle-dependencies + pkgdesc = Locally install package dependencies + pkgver = 0.0.1 + pkgrel = 1 + url = https://github.com/vinsonchuong/bash-common-bundle-dependencies + arch = any + license = MIT + checkdepends = bats-git + makedepends = clidoc + depends = bash-common-environment + depends = bash-common-parse-options + depends = git + source = https://github.com/vinsonchuong/bash-common-bundle-dependencies/archive/v0.0.1-1.tar.gz + md5sums = c093897b249b4ce2ef9d95d3319f6838 + +pkgname = bash-common-bundle-dependencies + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..20e18b1d4a36 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Vinson Chuong <vinsonchuong@gmail.com> +pkgname=bash-common-bundle-dependencies +pkgver=0.0.1 +pkgrel=1 +pkgdesc=Locally\ install\ package\ dependencies +arch=(any) +url=https://github.com/vinsonchuong/bash-common-bundle-dependencies +license=(MIT) +depends=( + bash-common-environment + bash-common-parse-options + git +) +makedepends=(clidoc) +checkdepends=(bats-git) +source=(https://github.com/vinsonchuong/bash-common-bundle-dependencies/archive/v0.0.1-1.tar.gz) +md5sums=('c093897b249b4ce2ef9d95d3319f6838') +build () +{ + cd "${srcdir}/${pkgname}-${pkgver}-${pkgrel}"; + clidoc doc/*.md +} +check () +{ + cd "${srcdir}/${pkgname}-${pkgver}-${pkgrel}"; + PATH="${PWD}/bin:${PATH}" bats spec +} +package () +{ + cd "${srcdir}/${pkgname}-${pkgver}-${pkgrel}"; + [[ -d 'bin' ]] && install -Dm755 -t "${pkgdir}/usr/bin" bin/*; + [[ -d 'lib' ]] && install -Dm755 -t "${pkgdir}/usr/lib/${pkgname}" lib/*; + [[ -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/* +} |