blob: d027ea8d86eedadb767685cdea3340bf1c04d9d1 (
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
|
# Maintainer: Fabien Dubosson <fabien.dubosson@gmail.com>
pkgname="q"
pkgver="1.5.0"
pkgrel="1"
pkgdesc="SQL-like queries on tabular text data, including joins and subqueries"
url="https://github.com/harelba/q"
license=('GPL3')
arch=('any')
depends=('python2')
changelog="ChangeLog"
source=("https://github.com/harelba/${pkgname}/archive/${pkgver}.tar.gz"
"https://github.com/harelba/packages-for-q/raw/master/rpms/q-text-as-data-${pkgver}-1.noarch.rpm")
sha1sums=('772c1bc7a49d725042ffc130e3c9328fc9da67dc'
'7880898b6ca5e298a4b2d686e70b0b889a6e76cf')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}/"
# Replace shell bang with python2. Not compatible with python3 yet.
sed -e '0,/python/{s/python/python2/}' -i "bin/${pkgname}"
}
package() {
cd "${srcdir}/"
install -D -m755 "${pkgname}-${pkgver}/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -D -m755 "usr/share/man/man1/${pkgname}.1.gz" "${pkgdir}/usr/share/man/man1/${pkgname}.1.gz"
}
# vim:set ts=4 sw=4 et:
|