blob: 32044616fac7a676d5498fe7ab5c4a2f035c4325 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Aniket-Pradhan aniket17133@iiitd.ac.in
# Owner/Cofntributer: Paul Bergeron https://github.com/dinedal
pkgname=textql-git
pkgver=2.0.3
pkgrel=1
pkgdesc="Execute SQL against structured text like CSV or TSV"
arch=('x86_64')
url="https://github.com/dinedal/textql"
license=('MIT')
depends=('go-pie')
options=('!strip' '!emptydirs')
source=("$pkgname::git+https://github.com/dinedal/textql")
prepare(){
mkdir -p gopath/src/github.com
ln -rTsf $pkgname $srcdir/gopath/src/github.com/$pkgname
export GOPATH="$srcdir"/gopath
cd $GOPATH/src/github.com/$pkgname
go get -d ./...
}
build(){
export GOPATH="$srcdir"/gopath
cd $GOPATH/src/github.com/$pkgname
go build textql/main.go
#-gcflags "all=-trimpath=$GOPATH" \
#-asmflags "all=-trimpath=$GOPATH" \
#-ldflags "-extldflags $LDFLAGS" \
#-v ./...
}
package() {
export GOPATH="$srcdir"/gopath
install -Dm755 "$GOPATH"/src/github.com/$pkgname/main "$pkgdir"/usr/bin/textql
for f in LICENSE COPYING LICENSE.* COPYING.*; do
if [ -e "$srcdir/src/$_gourl/$f" ]; then
install -Dm644 "$srcdir/src/$_gourl/$f" \
"$pkgdir/usr/share/licenses/$pkgname/$f"
fi
done
}
md5sums=('SKIP')
|