Skip to content

Instantly share code, notes, and snippets.

@JaHIY

JaHIY/PKGBUILD

Last active Dec 23, 2015
Embed
What would you like to do?
PKGBUILD for jq-git
# Submitter: Alex Chamberlain <alex@alexchamberlain.co.uk>
# Maintainer: Kars Wang <jaklsy@gmail.com>
pkgname=jq-git
_gitname='jq'
pkgver=1.3_78_g4e3024c
pkgrel=1
pkgdesc='Command-line JSON processor'
arch=('i686' 'x86_64')
url='http://stedolan.github.com/jq/'
license=('custom')
groups=()
depends=()
makedepends=('python2' 'git' 'autoconf' 'automake' 'bison' 'flex')
checkdepends=()
optdepends=()
provides=()
conflicts=('jq')
source=('git+https://github.com/stedolan/jq.git')
md5sums=(SKIP)
pkgver() {
cd "$_gitname"
git describe --long | sed -e 's/^jq-//' -e 's/-/_/g'
}
build() {
cd "$_gitname"
autoreconf -i
./configure --prefix=/usr
make
}
package() {
cd "$_gitname"
make DESTDIR="$pkgdir" prefix=/usr install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/jq"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment