summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkleintux2022-09-22 12:32:02 +0200
committerkleintux2022-09-22 12:32:02 +0200
commitd6c6ef8236e76595e85e41e62d190ac4e7a8f696 (patch)
tree7bf492c1f2e3441f4fbe9a9e2356eac9abc97532
parentaaf85bc6f55eaaf55111710907bf2bdd8c5896ee (diff)
downloadaur-csvtk-bin.tar.gz
adopted. fixed and updated to 0.25.0
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD38
2 files changed, 30 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d6e93e40a1b..0743b52b99d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,15 @@
pkgbase = csvtk-bin
pkgdesc = A cross-platform, efficient and practical CSV/TSV toolkit in Golang
- pkgver = 0.11.0
+ pkgver = 0.25.0
pkgrel = 1
url = http://bioinf.shenwei.me/csvtk
arch = x86_64
license = MIT
- source = csvtk-0.11.0::https://github.com/shenwei356/csvtk/archive/v0.11.0.tar.gz
- source = csvtk-0.11.0-binary::https://github.com/shenwei356/csvtk/releases/download/v0.11.0/csvtk_linux_amd64.tar.gz
- sha256sums = a1e5076a31f501344329272dab6144df777934c2a7fbbb5b1da11424827d412e
- sha256sums = fdf7beed8b83dc1ecdd61c69b4ececd81083cca336e0bc5a6244631133b915bb
+ provides = csvtk
+ conflicts = csvtk
+ source = csvtk-0.25.0::https://github.com/shenwei356/csvtk/archive/v0.25.0.tar.gz
+ source = csvtk-0.25.0-binary::https://github.com/shenwei356/csvtk/releases/download/v0.25.0/csvtk_linux_amd64.tar.gz
+ sha256sums = 47d244068274ad5070ef50cafee243d1035c51692b025bf074d0b7be3f8a7d1c
+ sha256sums = f7b173cb40ca84cad834ccb65721b6ef96849f07718ce854c47ca65a04710d9e
pkgname = csvtk-bin
-
diff --git a/PKGBUILD b/PKGBUILD
index 49cabc7daf8..6eced365450 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,36 @@
-# Maintainer: Clint Valentine <valentine.clint@gmail.com>
+# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch>
+# contrbutor: Clint Valentine <valentine.clint@gmail.com>
-_name=csvtk
-pkgname=csvtk-bin
-pkgver=0.11.0
+_pkgname=csvtk
+pkgname=${_pkgname}-bin
+pkgver=0.25.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')
+conflicts=(${_pkgname})
+provides=(${_pkgname})
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'
+ "${_pkgname}"-"${pkgver}"::https://github.com/shenwei356/"${_pkgname}"/archive/v"${pkgver}".tar.gz
+ "${_pkgname}"-"${pkgver}"-binary::https://github.com/shenwei356/"${_pkgname}"/releases/download/v"${pkgver}"/"${_pkgname}"_linux_amd64.tar.gz
)
+sha256sums=('47d244068274ad5070ef50cafee243d1035c51692b025bf074d0b7be3f8a7d1c'
+ 'f7b173cb40ca84cad834ccb65721b6ef96849f07718ce854c47ca65a04710d9e')
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}/${_pkgname}-${pkgver}
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+ mkdir -p "${pkgdir}/usr/share/doc/${_pkgname}"
+ cp -rf doc/docs/* "${pkgdir}/usr/share/doc/${_pkgname}"
+ mkdir -p "${pkgdir}/usr/share/${_pkgname}"
+ cp -rf testdata "${pkgdir}/usr/share/${_pkgname}"
+
+ install -Dm644 README.md "${pkgdir}/usr/share/doc/${_pkgname}"/index.md
+ cd "${pkgdir}/usr/share/doc/${_pkgname}"/testdata
+ rm -rf figures
+ ln -s ../../../csvtk/testdata/figures ./figures
cd "${srcdir}/"
- install -Dm755 "${_name}"-"${pkgver}"-binary "${pkgdir}"/usr/bin/"${_name}"
+ install -Dm755 "${_pkgname}"-"${pkgver}"-binary "${pkgdir}"/usr/bin/"${_pkgname}"
}