diff options
author | K | 2024-01-01 23:53:04 +0800 |
---|---|---|
committer | K | 2024-01-01 23:53:04 +0800 |
commit | 92b024570238a62264f7437f7293a5d38f2040cc (patch) | |
tree | fded4b67d8994fdbdee4a70203049a9240d5a7d7 | |
download | aur-92b024570238a62264f7437f7293a5d38f2040cc.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1421cfc4341f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = kd + pkgdesc = a command-line dictionary + pkgver = v0.0.3 + pkgrel = 1 + url = https://github.com/Karmenzind/kd + arch = x86_64 + license = MIT + source = kd::https://github.com/Karmenzind/kd/releases/latest/download/kd_linux_amd64 + source = kd.go::https://raw.githubusercontent.com/Karmenzind/kd/main/cmd/kd.go + sha256sums = SKIP + sha256sums = SKIP + +pkgname = kd diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bd1527e45a81 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: kmz <valesail7@gmail.com> +pkgname=kd +pkgver=v0.0.3 +pkgrel=1 +pkgdesc='a command-line dictionary' +arch=('x86_64') +url='https://github.com/Karmenzind/kd' +license=('MIT') +# 'kd::http://localhost:8901/kd_linux_amd64' + +source=( + 'https://github.com/Karmenzind/kd/releases/latest/download/kd_linux_amd64' + 'kd.go::https://raw.githubusercontent.com/Karmenzind/kd/main/cmd/kd.go' +) +sha256sums=('SKIP' 'SKIP') + +# sha256sums=('75b450280572bdc340a5eac682ea7320776db78e378b5f0bd414a9f3538ee654' 'SKIP') + +pkgver() { + cat ${srcdir}/kd.go | grep 'var VERSION' | grep -o 'v[0-9]\+.[0-9]\+.[0-9]\+' + # git describe --long --abbrev=7 | grep -o 'v[0-9]\+.[0-9]\+.[0-9]\+' +} + +package() { + install -Dm744 "${srcdir}/kd" "${pkgdir}/usr/local/bin/kd" +} |