diff options
author | Storm Dragon | 2017-05-19 17:10:17 -0400 |
---|---|---|
committer | Storm Dragon | 2017-05-19 17:10:17 -0400 |
commit | ea017499e6d7afac9fed22eff4e3a5f0c3a7fcbc (patch) | |
tree | 979b2d661ddc150ab154ce6c1cac6bf0d90379d4 | |
download | aur-ea017499e6d7afac9fed22eff4e3a5f0c3a7fcbc.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | bashblog-git.install | 18 |
3 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bd90e37ecb4c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Fri May 19 21:10:07 UTC 2017 +pkgbase = bashblog-git + pkgdesc = A single Bash script to create blogs. + pkgver = 3 + pkgrel = 1 + url = https://github.com/cfenollosa/bashblog + install = bashblog-git.install + arch = any + license = GPL3 + makedepends = git + depends = bash + optdepends = markdown: markdown support + provides = bb + conflicts = bb + source = git+https://github.com/cfenollosa/bashblog.git + md5sums = SKIP + +pkgname = bashblog-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5d3693802201 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Storm Dragon <stormdragon2976@gmail.com> + +pkgname="bashblog-git" +_pkgname="${pkgname%-*}" +pkgver=3 +pkgrel=1 +pkgdesc="A single Bash script to create blogs." +arch=('any') +url="https://github.com/cfenollosa/bashblog" +license=('GPL3') +depends=('bash') +makedepends=('git') +optdepends=('markdown: markdown support') +provides=("bb") +conflicts=("bb") +source=("git+${url}.git") +install="bashblog-git.install" +md5sums=("SKIP") + +pkgver() +{ + cd "$_pkgname" + git shortlog | head -n 1 | tr -Cd "[:digit:]" +} + +package() + { + cd "$srcdir" + install -d "$pkgdir/usr/bin" + install -d "$pkgdir/usr/share/$_pkgname" + install -m755 "$_pkgname/bb.sh" "$pkgdir/usr/bin/bb" + install -m666 "$_pkgname/README.md" "$pkgdir/usr/share/$_pkgname" + } + +# vim:set ts=2 sw=2 et: diff --git a/bashblog-git.install b/bashblog-git.install new file mode 100644 index 000000000000..24830f40561e --- /dev/null +++ b/bashblog-git.install @@ -0,0 +1,18 @@ +post_install() +{ + _alert +} + +post_upgrade() +{ + _alert +} + +_alert() +{ +fold -s - << EOF +To execute bashblog, run /usr/bin/bb +The documentation is located in: +/usr/share/bashblog/README.md +EOF +} |