summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 918bd5356c1a156edd5b7a59378283edc5022bc9 (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
# Maintainer: Matthias Gatto <uso.cosmo.ray at gmail dot com>

pkgname=json-search-git
pkgver=r40.a741413
pkgrel=1
pkgdesc='Util to seach though json files'

arch=('x86_64' 'aarch64')

licence=("custom:WTFPL")

pkgver() {
	 cd "${srcdir}/json-search"
	 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

makedepends=(gcc make git)

depends=(json-c)

source=(git+https://github.com/cosmo-ray/json-search.git)
sha256sums=("SKIP")

build() {
    cd "${srcdir}/json-search"
    ./configure
    make
}

package() {
    cd "${srcdir}/json-search"
    install -D "${srcdir}/json-search/json-search" "$pkgdir/usr/bin/json-search"
    install -D "${srcdir}/json-search/LICENSE" "$pkgdir/usr/share/licenses/json-search/LICENSE"
}