blob: a106f8c1ac5c2660c9ce7b4d1671ef283348c215 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Thiago Almeida <echo "dGhpYWdvYWxtZWlkYXNhQGdtYWlsLmNvbQo=" | base64 -d>
pkgname=qrcp-bin
pkgver=0.10.1
pkgrel=4
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}_linux_arm64.tar.gz")
source_armv7h=("$pkgname-$pkgver.tar.gz::$url/releases/download/${pkgver}/${pkgname/-bin/}_${pkgver}_linux_armv7h.tar.gz")
source_i386=("$pkgname-$pkgver.tar.gz::$url/releases/download/${pkgver}/${pkgname/-bin/}_${pkgver}_linux_i386.tar.gz")
source_x86_64=("$pkgname-$pkgver.tar.gz::$url/releases/download/${pkgver}/${pkgname/-bin/}_${pkgver}_linux_x86_64.tar.gz")
sha256sums_aarch64=('27b1f2b9004ecf967a4abe95bd324b99b4f077f0c627ad96ea16e18644dce26e')
sha256sums_armv7h=('0442a9dff291e1188d64fe6e080fd7e5ce4eaf31405410ac37699ac0c4c7149e')
sha256sums_i386=('ce95248a65548ab15f12acba7cd642c83efeb261bb28a92d6d913fa6ed48bb3a')
sha256sums_x86_64=('d9f1bdf1c9ae80dd7e731556be75341cf76e3462b6ae8405ca4f608c5370fd16')
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/}"
}
|