diff options
author | Nicolas Stalder | 2021-11-21 14:59:39 +0100 |
---|---|---|
committer | Nicolas Stalder | 2021-11-21 14:59:39 +0100 |
commit | 37fe23a24f221bd38513d8e527cdf1094adca257 (patch) | |
tree | a7a38f3ee5ed5840ab7e276baf229f1abf7cfb33 | |
download | aur-37fe23a24f221bd38513d8e527cdf1094adca257.tar.gz |
Add a solo2-cli-bin PKGBUILD
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 41 |
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f80732d85913 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = solo2-cli-bin + pkgdesc = Solo 2 CLI + pkgver = 0.0.7 + pkgrel = 1 + url = https://github.com/solokeys/solo2-cli + arch = x86_64 + license = Apache + license = MIT + makedepends = git + makedepends = systemd + depends = systemd-libs + depends = ccid + provides = solo2-cli + conflicts = solo2-cli + source = solo2::https://github.com/solokeys/solo2-cli/releases/download/v0.0.7/solo2-v0.0.7-x86_64-unknown-linux-gnu + source = 70-solo2.rules::https://github.com/solokeys/solo2-cli/releases/download/v0.0.7/70-solo2.rules + source = solo2.bash::https://github.com/solokeys/solo2-cli/releases/download/v0.0.7/solo2.completions.bash + source = solo2.zsh::https://github.com/solokeys/solo2-cli/releases/download/v0.0.7/solo2.completions.zsh + source = LICENSE-MIT::https://github.com/solokeys/solo2-cli/raw/v0.0.7/LICENSE-MIT + sha256sums = 491ebfc793b6ab3086b51d9ba61da20335e2ceb301c5199edcf3a344dc4428b3 + sha256sums = 4133644b12a4e938f04e19e3059f9aec08f1c36b1b33b2f729b5815c88099fe3 + sha256sums = 52381afe1d5cd569b9c305127c8618bf4291a051184016d81e24b21b5cf00874 + sha256sums = c9142ff446eb839ae37140aa9e9a48c489432c4774744b0e0010a2f48c39887a + sha256sums = bdc889204ff84470aaad9f6fc66829cd1cdfb78b307fe3a8c0fe7be5353e1165 + +pkgname = solo2-cli-bin diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f1917252d4b2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg +src +*solo2* +LICENSE* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7be628c78dce --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Nicolas Stalder <n+archlinux@stalder.io> +# Helpful suggestions by Foxboron +pkgname=solo2-cli-bin +pkgver=0.0.7 +pkgrel=1 +pkgdesc='Solo 2 CLI' +arch=('x86_64') +url="https://github.com/solokeys/solo2-cli" +license=(Apache MIT) +# we only need `libudev.so`, during build we also need `pkgconfig/udev/.pc` +depends=(systemd-libs ccid) +# note we do not need Arch `hidapi` package here, it's a git submodule of Rust hidapi +makedepends=(git systemd) +provides=(solo2-cli) +conflicts=(solo2-cli) + +source=( + "solo2::${url}/releases/download/v${pkgver}/solo2-v${pkgver}-x86_64-unknown-linux-gnu" + "70-solo2.rules::${url}/releases/download/v${pkgver}/70-solo2.rules" + "solo2.bash::${url}/releases/download/v${pkgver}/solo2.completions.bash" + "solo2.zsh::${url}/releases/download/v${pkgver}/solo2.completions.zsh" + "LICENSE-MIT::${url}/raw/v${pkgver}/LICENSE-MIT") +sha256sums=( + "491ebfc793b6ab3086b51d9ba61da20335e2ceb301c5199edcf3a344dc4428b3" + "4133644b12a4e938f04e19e3059f9aec08f1c36b1b33b2f729b5815c88099fe3" + "52381afe1d5cd569b9c305127c8618bf4291a051184016d81e24b21b5cf00874" + "c9142ff446eb839ae37140aa9e9a48c489432c4774744b0e0010a2f48c39887a" + "bdc889204ff84470aaad9f6fc66829cd1cdfb78b307fe3a8c0fe7be5353e1165" +) + +package() { + install -Dm755 solo2 "$pkgdir/usr/bin/solo2" + install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgnamefull/LICENSE-MIT" + + # completions + install -Dm644 solo2.zsh -t "$pkgdir/usr/share/zsh/site-functions" + install -Dm644 solo2.bash "$pkgdir/usr/share/bash-completion/completions/solo2" + + # udev rule + install -Dm644 70-solo2.rules -t "$pkgdir/usr/lib/udev/rules.d" +} |