summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d369380220195cdb0c4eee1db979133f4a613cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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: