summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f75f957fe06a892ba44eafc34d48d102a46a898 (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
# Maintainer: robertfoster
# Contributor: brikler

pkgname=fwts-git
pkgver=23.11.00.r9.ffc2469b
pkgrel=1
pkgdesc="The FirmWare Test Suite is a tool to do automatic testing of a PC's firmware"
arch=('i686' 'x86_64')
url="https://github.com/fwts/fwts"
license=('GPL')
depends=('dtc' 'libbsd' 'pcre' 'json-c')
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}")
makedepends=('git')
source=("${pkgname%-git}::git+${url}")

build() {
  cd "${srcdir}/${pkgname%-git}"
  autoreconf -ivf
  CPPFLAGS="$CPPFLAGS -O2"
  CFLAGS=--sysroot= ./configure --prefix=/usr
  make
}

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

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

sha256sums=('SKIP')