summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e884ad3f140fb57eadb85fd464aab3034e4d34f3 (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
38
39
40
41
42
# Maintainer: Nick Levesque <nick.levesque@gmail.com>
pkgname=fwup
pkgver=v1.9.1.r0.g91fbf8c
pkgrel=1
pkgdesc="Configurable embedded Linux firmware update creator and runner"
arch=('any')
url="https://github.com/fwup-home/fwup"
license=('Apache v2.0')
groups=()
depends=('libsodium' 'libarchive' 'confuse' 'mtools' 'unzip' 'libtool' 'zip' 'help2man' 'autoconf' 'xdelta3' 'dosfstools')
makedepends=('git')
provides=("${pkgname}")
conflicts=("${pkgname}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/fwup-home/fwup#tag=v1.9.1')
noextract=()
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/${pkgname}"
    printf "%s" "$(git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
}

build() {
    cd "$srcdir/${pkgname}"
    ./autogen.sh
    ./configure --prefix=/usr
    make
}

check() {
    cd "$srcdir/${pkgname}"
    make check
}

package() {
    cd "$srcdir/${pkgname}"
    make DESTDIR="$pkgdir/" install
}