blob: c4b89208aa6b263421e5a251e3bd671df13a94e4 (
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
|
# Maintainer: Eric Woudstra <ericwouds@gmail.com>
_gitname=flashrom
pkgname="chromeos-${_gitname}-git"
pkgdesc="Flashrom Chromium OS version from git, includes libraries and programmers ec and host."
url="https://chromium.googlesource.com/chromiumos/third_party/${_gitname}"
license=('GPL')
source=("git+https://chromium.googlesource.com/chromiumos/third_party/${_gitname}")
depends=('libusb' 'libftdi' 'pciutils')
makedepends=('git' 'meson' 'cmocka')
optdepends=("dmidecode: for SMBIOS/DMI table decoder support")
conflicts=("${_gitname}")
provides=("${_gitname}")
replaces=("${_gitname}-svn")
sha512sums=('SKIP')
arch=('aarch64' 'armv6h' 'armv7h' 'i686' 'x86_64')
pkgver=r4051.90795b2cc
pkgrel=1
pkgver() {
cd "${srcdir}/${_gitname}"
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "${srcdir}/${_gitname}"
arch-meson -D werror=false ../build
ninja -v -C ../build
}
package() {
cd "${srcdir}"
DESTDIR="${pkgdir}" ninja -C build install
}
|