diff options
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 20 insertions, 14 deletions
@@ -1,15 +1,19 @@ pkgbase = fwts-git pkgdesc = The FirmWare Test Suite is a tool to do automatic testing of a PC's firmware - pkgver = 4604.2b14ce46 + pkgver = 21.02.00.r7.3ba26885 pkgrel = 1 url = http://smackerelofopinion.blogspot.com/2010/08/firmware-test-suite-biosacpi-health.html arch = i686 arch = x86_64 license = GPL makedepends = git + depends = dtc + depends = libbsd depends = pcre depends = json-c - source = fwts::git://kernel.ubuntu.com/hwe/fwts.git + provides = fwts + conflicts = fwts + source = fwts-git::git://kernel.ubuntu.com/hwe/fwts.git md5sums = SKIP pkgname = fwts-git @@ -2,32 +2,34 @@ # Contributor: brikler pkgname=fwts-git -pkgver=4604.2b14ce46 +pkgver=21.02.00.r7.3ba26885 pkgrel=1 pkgdesc="The FirmWare Test Suite is a tool to do automatic testing of a PC's firmware" arch=('i686' 'x86_64') url="http://smackerelofopinion.blogspot.com/2010/08/firmware-test-suite-biosacpi-health.html" license=('GPL') -depends=('pcre' 'json-c') +depends=('dtc' 'libbsd' 'pcre' 'json-c') +conflicts=("${pkgname%-git}") +provides=("${pkgname%-git}") makedepends=('git') -source=('fwts::git://kernel.ubuntu.com/hwe/fwts.git') +source=("${pkgname}::git://kernel.ubuntu.com/hwe/fwts.git") build() { - cd fwts - autoreconf -ivf - CPPFLAGS="$CPPFLAGS -O2" - CFLAGS=--sysroot= ./configure --prefix=/usr - make + cd "${srcdir}/${pkgname}" + autoreconf -ivf + CPPFLAGS="$CPPFLAGS -O2" + CFLAGS=--sysroot= ./configure --prefix=/usr + make } package() { - cd fwts - make DESTDIR=$pkgdir install + cd "${srcdir}/${pkgname}" + make DESTDIR="${pkgdir}" install } pkgver() { - cd fwts - echo $(git rev-list --count master).$(git rev-parse --short master) + cd "${srcdir}/${pkgname}" + printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g' | sed 's/V//')" } md5sums=('SKIP') |