aboutsummaryrefslogtreecommitdiffstats
path: root/community/fwup/APKBUILD
blob: 5c231450ff31cb52b849e05e5be6eec46d4f6c9d (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
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Frank Hunleth <fhunleth@troodon-software.com>
# Maintainer: Frank Hunleth <fhunleth@troodon-software.com>
pkgname=fwup
pkgver=1.2.5
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="63d3fd905259059933cf12753801863255840db0ad62463e0adb37b3beaa2f66d7f055d8e6a713e1392fe08c4007e72facd374859c6dd007437382568bbc7c3c  fwup-1.2.5.tar.gz"