summaryrefslogtreecommitdiff
path: root/pkgbuilds/qrcp-bin/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pkgbuilds/qrcp-bin/PKGBUILD')
-rw-r--r--pkgbuilds/qrcp-bin/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgbuilds/qrcp-bin/PKGBUILD b/pkgbuilds/qrcp-bin/PKGBUILD
new file mode 100644
index 0000000..5b539ca
--- /dev/null
+++ b/pkgbuilds/qrcp-bin/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Thiago Almeida <echo "dGhpYWdvYWxtZWlkYXNhQGdtYWlsLmNvbQo=" | base64 -d>
+
+pkgname=qrcp-bin
+pkgver=v0.11.4
+pkgrel=1
+provides=("${pkgname/-bin/}")
+conflicts=('qrcp' 'qrcp-git')
+pkgdesc="Transfer files over wifi from your computer to your mobile device by scanning a QR code without leaving the terminal."
+arch=('x86_64' 'i386' 'armv7h' 'aarch64')
+url="https://github.com/claudiodangelis/qrcp"
+license=('MIT')
+
+source_aarch64=("$pkgname-$pkgver.tar.gz::$url/releases/download/${pkgver}/${pkgname/-bin/}_${pkgver#v}_linux_arm64.tar.gz")
+source_x86_64=("$pkgname-$pkgver.tar.gz::$url/releases/download/${pkgver}/${pkgname/-bin/}_${pkgver#v}_linux_amd64.tar.gz")
+
+sha256sums_aarch64=('9ffca3f73392e8bf5867e1c319f90ecdd3e93443b25de3276d9871e3c6c3d6d3')
+sha256sums_x86_64=('5014f35156e19983af64879b84a28a9fb111e77498676e1f788ce88cf3adfa32')
+
+build() {
+ ./qrcp completion bash | install -Dm644 /dev/stdin share/bash-completion/completions/qrcp
+ ./qrcp completion zsh | install -Dm644 /dev/stdin share/zsh/site-functions/_qrcp
+ ./qrcp completion fish | install -Dm644 /dev/stdin share/fish/vendor_completions.d/qrcp.fish
+}
+
+package() {
+ install -Dm755 qrcp "$pkgdir/usr/bin/qrcp"
+ cp -r share/ "$pkgdir/usr"
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname/-bin/}"
+ install -Dm644 README.md -t "$pkgdir/usr/share/doc/${pkgname/-bin/}"
+}