# $Id: PKGBUILD 102000 2013-12-03 16:51:55Z eric $ # Maintainer: Giovanni Scafora # Contributor: Cilyan Olowen # Contributor: fill # Contributor: Anton Shestakov pkgname=flashrom pkgver=0.9.7 pkgrel=2 pkgdesc="Utility for reading, writing, erasing and verifying flash ROM chips" url="http://www.flashrom.org/" arch=('i686' 'x86_64' 'mips64el') license=('GPL') depends=('libftdi-compat' 'pciutils') [ "$CARCH" != "mips64el" ] && optdepends=('dmidecode: for SMBIOS/DMI table decoder support') source=("http://download.flashrom.org/releases/${pkgname}-${pkgver}.tar.bz2") md5sums=('d239bafa1b46619d851f70f84a5b122a') prepare() { cd "${srcdir}/${pkgname}-${pkgver}" sed -i "s:sbin:bin:g" Makefile } build() { cd "${srcdir}/${pkgname}-${pkgver}" make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make PREFIX="${pkgdir}/usr" install }