diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | .pre-commit-config.yaml | 22 | ||||
-rw-r--r-- | PKGBUILD | 8 |
3 files changed, 6 insertions, 28 deletions
@@ -1,7 +1,7 @@ pkgbase = csview-git pkgdesc = A high performance csv viewer with cjk/emoji support - pkgver = 0.3.6.48.gca098b0 - pkgrel = 2 + pkgver = 0.3.6.rc.0.20201010 + pkgrel = 1 url = https://github.com/wfxr/csview arch = i686 arch = x86_64 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 1322305dfbeb..000000000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# See https://pre-commit.com for more information -# See https://pre-commit.com/hooks.html for more hooks -repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.1.0 - hooks: - - id: trailing-whitespace - - id: end-of-file-fixer - - id: check-added-large-files - - id: mixed-line-ending -- repo: local - hooks: - - id: makepkg - name: makepkg - pass_filenames: false - always_run: true - language: system - entry: | - sh -c ' - makepkg --printsrcinfo > .SRCINFO && - git add PKGBUILD .SRCINFO - ' @@ -1,8 +1,8 @@ # Maintainer: Wenxuan <wenxuangm@gmail.com> _pkgname=csview pkgname=csview-git -pkgver=0.3.6.48.gca098b0 -pkgrel=2 +pkgver=0.3.6.rc.0.20201010 +pkgrel=1 pkgdesc='A high performance csv viewer with cjk/emoji support' arch=(i686 x86_64) url='https://github.com/wfxr/csview' @@ -12,11 +12,11 @@ conflicts=("${_pkgname}" "${_pkgname}-bin") provides=("${_pkgname}") source=("${_pkgname}::git+${url}") -sha256sums=("SKIP") +sha256sums=('SKIP') pkgver() { cd "${_pkgname}" - echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" + echo "$(grep -oPm1 '(?<=^version = ")[^"]+' Cargo.toml).$(TZ=UTC git log -1 --pretty='%cd' --date=short-local | tr -d '-')" | tr '-' '.' } build() { |