forked from micha/jsawk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
27 lines (24 loc) · 642 Bytes
/
PKGBUILD
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
# Contributor: Andreas B. Wagner <[email protected]>
pkgname=jsawk-git
pkgver=1.3.2.gc031fef
pkgrel=1
pkgdesc="like awk, but for JSON"
arch=('i686' 'x86_64')
url="http:https://github.com/micha/jsawk"
source=('jsawk-git::git+https://github.com/micha/jsawk.git#branch=master')
md5sums=('SKIP')
license=('unknown')
depends=('js')
makedepends=('git')
provides=('jsawk')
conflicts=('jsawk')
pkgver() {
cd "${srcdir}/${pkgname}"
git describe | sed 's/^v//;s/-/./g'
}
package() {
cd "$SRCDEST"
install -dm755 "${pkgdir}"/usr/bin/
install -Dm755 jsawk "${pkgdir}"/usr/bin/jsawk
echo "export JS=/usr/bin/js24" >> /etc/jsawkrc
}