aboutsummaryrefslogblamecommitdiffstats
path: root/community/fwup/APKBUILD
blob: 520ab0984082fbb5c4377f0a3981b031fcc67d3a (plain) (tree)
1
2
3
4


                                                            
            































                                                                                                                         
                                                                                                                                                                
# Contributor: Frank Hunleth <fhunleth@troodon-software.com>
# Maintainer: Frank Hunleth <fhunleth@troodon-software.com>
pkgname=fwup
pkgver=1.2.7
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"
source="$pkgname-$pkgver.tar.gz::https://github.com/fhunleth/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="50df41554745a9a22b8b881d21b3cc84e8080468cf1b67afca689fcab5cd1bb3e1794483fe48d8e3a495735da3b0e6a5bed49f8c065a4d65ffca1e323c84ab58  fwup-1.2.7.tar.gz"