summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 304a458c0fdec0beff316bb5cc94ccd383a3d3cd (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
# Maintainer: fsckd <fsckdaemon at gmail dot com>

pkgname=jo-git
pkgver=1.9.r6.g02be130
pkgrel=1
pkgdesc='A shell command to create JSON'
arch=('i686' 'x86_64')
url='https://github.com/jpmens/jo'
license=('GPL' 'MIT')
provides=('jo')
conflicts=('jo')
makedepends=('git')
source=('git+https://github.com/jpmens/jo')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/jo"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/jo"
  autoreconf -vi
  ./configure --prefix=/usr
  make all
}

package() {
  cd "$srcdir/jo"
  make DESTDIR="$pkgdir" install
}