blob: 715152b691b719bdb3bfedf180fb6efa25a3e86d (
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
36
37
|
# Contributor: Alad Wenter <alad@mailbox.org>
# Contributor: Kyle Keen <keenerd@gmail.com>
pkgname=jshon-git
pkgver=20131105.r22.gd919aea
pkgrel=1
pkgdesc="A json parser for the shell."
arch=('i686' 'x86_64')
url="http://kmkeen.com/jshon/"
license=('MIT')
depends=('jansson')
makedepends=('git')
provides=('jshon')
conflicts=('jshon')
source=("$pkgname::git+https://github.com/keenerd/jshon")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/-/.r/; s/-/./'
}
prepare() {
cd "$pkgname"
sed -i 's/_pbpst/_jshon/' Makefile
}
build() {
cd "$pkgname"
make
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir" install
install -Dm644 jshon.1 "$pkgdir/usr/share/man/man1/jshon.1"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/jshon-git/LICENSE"
}
|