summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b2df6654704fb42185c5db6a371aa6cc09fe0203 (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
# Maintainer: Aaron DeVore <aaron.devore@gmail.com>
pkgname=xsv-git
pkgver=0.13.0.r12.3de6c04
pkgrel=1
pkgdesc="A fast CSV toolkit written in Rust"
arch=(i686 x86_64)
url="https://github.com/BurntSushi/xsv"
license=('CUSTOM')
depends=(gcc-libs)
makedepends=('git' 'rust' 'cargo')
provides=(xsv)
conflicts=(xsv)
source=('git://github.com/BurntSushi/xsv.git')
md5sums=('SKIP')


pkgver() {
	cd "$srcdir/xsv"
	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
	cd "$srcdir/xsv"
	cargo build --release
}

package() {
	cd "$srcdir/xsv"
	install -m755 -D target/release/xsv "$pkgdir/usr/bin/xsv"
	install -D -m644 "UNLICENSE" \
		"${pkgdir}/usr/share/licenses/${pkgname}/UNLICENSE"
}