mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
added community/flashrom
This commit is contained in:
parent
088e17ff9d
commit
7ed3fec38a
1 changed files with 39 additions and 0 deletions
39
community/flashrom/PKGBUILD
Normal file
39
community/flashrom/PKGBUILD
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Maintainer: 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>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - set -Dpciutils=false - PCI isn't supported on ARM in this tool
|
||||
|
||||
pkgname=flashrom
|
||||
pkgver=1.2
|
||||
pkgrel=2
|
||||
pkgdesc="Utility for reading, writing, erasing and verifying flash ROM chips"
|
||||
arch=(x86_64)
|
||||
url="https://www.flashrom.org/"
|
||||
license=(GPL)
|
||||
depends=(libftdi pciutils libusb-compat)
|
||||
makedepends=(meson)
|
||||
optdepends=('dmidecode: for SMBIOS/DMI table decoder support')
|
||||
source=("https://download.flashrom.org/releases/${pkgname}-v${pkgver}.tar.bz2"{,.asc})
|
||||
sha256sums=('e1f8d95881f5a4365dfe58776ce821dfcee0f138f75d0f44f8a3cd032d9ea42b'
|
||||
'SKIP')
|
||||
validpgpkeys=(58A4868B25C7CFD662FB0132A3EB95B8D9780F68) # David Hendricks (packaging key) <david.hendricks@gmail.com>
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-v${pkgver}
|
||||
arch-meson ../build -Dpciutils=false
|
||||
ninja -v -C ../build
|
||||
# Workaround for meson not installing manpage
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="${pkgdir}" ninja -C build install
|
||||
# Workaround for meson not installing manpage
|
||||
cd ${pkgname}-v${pkgver}
|
||||
make PREFIX=temp/ install
|
||||
cp -r temp/share "${pkgdir}"/usr/
|
||||
}
|
Loading…
Reference in a new issue