description="Command-line JSON processor"
url="https://stedolan.github.io/jq/"

license="MIT"

packager="spiky <spiky@nutyx.org>"
contributors="Greg"

makedepends=(oniguruma)

name=jq
version=1.7.1

source=(https://github.com/stedolan/jq/releases/download/${name}-${version}/${name}-${version}.tar.gz)


build() {
    cd "${name}-${version}"
    ./configure --prefix=/usr
    make
}

package() {
    cd "${name}-${version}"
    make DESTDIR="${PKG}" prefix=/usr install

install -Dm644 COPYING $PKG/usr/share/licenses/$name/COPYING
}
