blob: 7746f1b4330f88afba52290411aa66c52fbee656 (
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
43
44
45
46
|
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
# Contributor: Bruno Pagani <archange@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Cilyan Olowen <gaknar@gmail.com>
# Contributor: fill <mailbox@fillo.ru>
# Contributor: Anton Shestakov <engored*ya.ru>
_pkgname=flashrom
pkgname=${_pkgname}-starlabs
pkgver=1.3.0
_commit=fb14ceb302ac06bb07b75de354fc4bc82731f6be
pkgrel=2
provides=(${_pkgname})
conflicts=(${_pkgname})
pkgdesc="Utility for reading, writing, erasing and verifying flash ROM chips (StarLabs version)"
arch=(x86_64)
url='https://github.com/StarLabsLtd/flashrom'
license=(GPL-2.0-or-later)
depends=(
libftdi
libusb
pciutils
)
makedepends=(
cmocka
git
meson
python-sphinx
)
optdepends=('dmidecode: for SMBIOS/DMI table decoder support')
source=("${pkgname}::git+${url}.git#commit=${_commit}")
sha256sums=('3143d604c86e683e9a04222b3d2eb428c397210297e386c279be32896be55b5e')
build() {
export CFLAGS+=' -Wno-error=calloc-transposed-args'
arch-meson ${pkgname} build
meson compile -C build
}
package() {
meson install -C build --destdir "${pkgdir}"
cd ${pkgname}
sed -i 's#GROUP="plugdev"#TAG+="uaccess"#g' util/flashrom_udev.rules
install -Dm644 util/flashrom_udev.rules "${pkgdir}"/usr/lib/udev/rules.d/70-flashrom.rules
}
|