summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bba140ad954147c5e1b73cf85400774f0c9ee6a6 (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: wicast <wicastchen at hotmail dot com>
pkgname=picojson-git
pkgver=v1.3.0.r51.g111c9be
pkgrel=1
pkgdesc="a header-file-only, JSON parser serializer in C++"
arch=(any)
url="https://github.com/kazuho/picojson"
license=('BSD2')
makedepends=(git)
source=(${pkgname%-git}::git+https://github.com/kazuho/picojson.git)
md5sums=(SKIP)

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

build() {
    cd "$srcdir/${pkgname%-git}"
    make
}

check() {
    cd "$srcdir/${pkgname%-git}"
    make -k check
}

package() {
    cd "$srcdir/${pkgname%-git}"
    make prefix="/usr" DESTDIR="$pkgdir/" install
}