summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c96a4c57376f06508f9b7d059ebbdf1bb7d2757 (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
# Maintainer: Martin Kröner <aur@kroner.dev>
pkgname=iwqr
pkgver=0.1.1
pkgrel=1
pkgdesc='QR code generator for networks saved using iwd'
url='https://gitlab.com/krenyy/iwqr'
source=("$pkgname-$pkgver.tar.gz::https://gitlab.com/krenyy/iwqr/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz")
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
license=('GPL3')
makedepends=('cargo')
depends=('iwd')
sha256sums=('ba15034e078b42d4f9acd24c6e9fb7efccc0015067ccc29f3ad8e058b89f2aa6')

build() {
	cd "$srcdir/$pkgname-v$pkgver"

	cargo build --locked --release
}

package() {
	cd "$srcdir/$pkgname-v$pkgver"

	install -Dm755 target/release/iwqr "${pkgdir}/usr/bin/iwqr"
}