blob: f79862bd81c5d53f178ae1b2d0f3d7cac427d8ba (
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=2
pkgdesc="A single Bash script to create blogs."
arch=('any')
url="https://github.com/cfenollosa/bashblog"
license=('GPL3')
depends=('bash')
makedepends=('git')
optdepends=('discount: 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 -m644 "$_pkgname/README.md" "$pkgdir/usr/share/$_pkgname"
}
# vim:set ts=2 sw=2 et:
|