summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorclintval2018-01-22 09:32:39 -0800
committerclintval2018-01-22 09:32:39 -0800
commitaaf85bc6f55eaaf55111710907bf2bdd8c5896ee (patch)
tree7f27378e2776f224543435b9edd1317ea0a2fbea /PKGBUILD
downloadaur-csvtk-bin.tar.gz
First commit with PKGBUILD and .SRCINFO
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..49cabc7daf8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Clint Valentine <valentine.clint@gmail.com>
+
+_name=csvtk
+pkgname=csvtk-bin
+pkgver=0.11.0
+pkgrel=1
+pkgdesc="A cross-platform, efficient and practical CSV/TSV toolkit in Golang"
+arch=('x86_64')
+url=http://bioinf.shenwei.me/csvtk
+license=('MIT')
+source=(
+ "${_name}"-"${pkgver}"::https://github.com/shenwei356/"${_name}"/archive/v"${pkgver}".tar.gz
+ "${_name}"-"${pkgver}"-binary::https://github.com/shenwei356/"${_name}"/releases/download/v"${pkgver}"/"${_name}"_linux_amd64.tar.gz
+)
+sha256sums=(
+ 'a1e5076a31f501344329272dab6144df777934c2a7fbbb5b1da11424827d412e'
+ 'fdf7beed8b83dc1ecdd61c69b4ececd81083cca336e0bc5a6244631133b915bb'
+)
+
+package() {
+ cd "${srcdir}"/"${_name}"-"${pkgver}"
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${_name}"/LICENSE
+ install -Dm644 doc/docs/usage.md "${pkgdir}"/usr/share/doc/"${_name}"/usage.md
+ install -Dm644 doc/docs/tutorial.md "${pkgdir}"/usr/share/doc/"${_name}"/tutorial.md
+
+ cd "${srcdir}/"
+ install -Dm755 "${_name}"-"${pkgver}"-binary "${pkgdir}"/usr/bin/"${_name}"
+}