main/jq: package cleanup

This commit is contained in:
Michał Polański 2020-01-27 17:54:29 +01:00 committed by Leo
parent 66591e9ab4
commit 1c092dff7c

View File

@ -2,17 +2,14 @@
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=jq
pkgver=1.6
pkgrel=0
pkgrel=1
pkgdesc="A lightweight and flexible command-line JSON processor"
url="http://stedolan.github.io/jq/"
url="https://stedolan.github.io/jq/"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="oniguruma-dev automake autoconf libtool"
install=""
subpackages="$pkgname-doc $pkgname-dev"
source="https://github.com/stedolan/jq/archive/$pkgname-$pkgver.tar.gz"
source="https://github.com/stedolan/jq/archive/jq-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"
# secfixes:
@ -21,12 +18,10 @@ builddir="$srcdir/$pkgname-$pkgname-$pkgver"
prepare() {
default_prepare
cd "$builddir"
autoreconf -fi
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@ -39,12 +34,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" prefix=/usr install
}