# Contributor: Frank Hunleth # Maintainer: Frank Hunleth pkgname=fwup pkgver=1.3.1 pkgrel=0 pkgdesc="Configurable embedded Linux firmware update creator and runner" url="https://github.com/fhunleth/fwup" arch="all" license="Apache-2.0" makedepends="linux-headers confuse-dev libarchive-dev libsodium-dev help2man dosfstools mtools zip unzip" subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch" source="$pkgname-$pkgver.tar.gz::https://github.com/fhunleth/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz" build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make } check() { make check } package() { make DESTDIR="$pkgdir" install } bashcomp() { depends="" pkgdesc="Bash completions for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel bash-completion" mkdir -p "$subpkgdir"/usr/share/bash-completion/completions mv "$pkgdir"/usr/share/bash-completion/completions/* \ "$subpkgdir"/usr/share/bash-completion/completions } sha512sums="c1d97d7973eb45bbe5acf606dc49d5ceac44f2f3e5176a3fbf3cfc67f42ad9dfb50c299d5167bde3555f5fdf5640857335eec048763aa2859139a33aa36b270e fwup-1.3.1.tar.gz"