# Contributor: Frank Hunleth # Maintainer: Frank Hunleth pkgname=fwup pkgver=1.5.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/fwup/releases/download/v$pkgver/fwup-$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="d8090bec95ea6e471f2e536d7ce3d23167fe9fc4f84f7c3c429d8d942a11a22ea2d694d69d000e8749c24468006c5e8949a1ee91dd3df07a46f029b56008f419 fwup-1.5.1.tar.gz"