# Contributor: Frank Hunleth # Maintainer: Frank Hunleth pkgname=fwup pkgver=1.5.0 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="2f7056dae5873481560452183b6159d02cdb68fbc1ad71fe0e1455e04034ab85e0f4b7273ac73beb11da6235038ff078c55f3ea6cf2ffb1e2a0ae81550d78935 fwup-1.5.0.tar.gz"