diff options
author | taotieren | 2023-06-14 23:01:27 +0800 |
---|---|---|
committer | taotieren | 2023-06-14 23:01:27 +0800 |
commit | 71f2f5057cf5fba618e40f027709d1ad9baca10e (patch) | |
tree | 616cb09ac62975c8ece75e9dcd3b975a0ed57280 /PKGBUILD | |
download | aur-71f2f5057cf5fba618e40f027709d1ad9baca10e.tar.gz |
Update 0.1.r23.gfd2d32a-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d63840d7e35b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: taotieren <admin@taotieren.com> + +pkgbase=tinycorrect-git +pkgname=tinycorrect +pkgver=0.1.r23.gfd2d32a +pkgrel=1 +pkgdesc="Auto detect & correct typeset, inline code, toc, file name, header, images, urls and words of Markdown documents, originally written for the RISC-V Linux project: https://gitee.com/tinylab/riscv-linux." +arch=(any) +url="https://gitee.com/tinylab/tinycorrect" +license=('GPL-2.0') +groups=('tinylab-git') +provides=(${pkgbase%-git}) +conflicts=(${pkgbase%-git}) +replaces=() +depends=( + autocorrect + vim-pangu + autocorrect + python-pycorrector + python-xmnlp +) +makedepends=(git) +checkdepends=() +optdepends=() +source=("${pkgname}::git+${url}.git") +sha256sums=('SKIP') +options=('!strip') + +pkgver() { + cd "${srcdir}/${pkgname}/" + git describe --long --tags | sed 's/v//g;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd "${srcdir}/${pkgname}/" + + install -Dm755 -t "${pkgdir}/usr/bin/" ${pkgname}.sh + install -Dm644 -t "${pkgdir}/usr/share/licenses/$pkgname/" COPYING + install -Dm644 -t "${pkgdir}/usr/share/doc/$pkgname/" README.md +} |