summaryrefslogtreecommitdiffstats
path: root/main/flashrom/APKBUILD
blob: bdfe3ef286494f2c5f4d14baafe2b0a08780225b (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
# Contributor: 
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=flashrom
pkgver=0.9.7
pkgrel=1
pkgdesc="A utility for identifying, reading, writing, verifying and erasing flash chips"
url="http://www.flashrom.org/Flashrom"
arch="all"
license="GPL"
depends=dmidecode
makedepends=pciutils-dev
subpackages="$pkgname-doc"
install="$pkgname.post-install"
source="http://download.flashrom.org/releases/flashrom-$pkgver.tar.bz2
	spi-ioctl.patch"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	patch -p1 < "$srcdir"/spi-ioctl.patch
}

build() {
	cd "$_builddir"
	make PREFIX=/usr/ || return 1
}

package() {
	cd "$_builddir"
	make PREFIX="$pkgdir/usr/" install  
}

md5sums="d239bafa1b46619d851f70f84a5b122a  flashrom-0.9.7.tar.bz2
74129051d7f4df2c376ce7b4326f4ab8  spi-ioctl.patch"
sha256sums="5a55212d00791981a9a1cb0cdca9d9e58bea6d399864251e7b410b4d3d6137e9  flashrom-0.9.7.tar.bz2
159aa529b3791b6d888dc804a6d36a1f92646898a347bfd6887787cb425baa2e  spi-ioctl.patch"
sha512sums="a226c1ac3f9c7822b74ca14b7f9b53013110b2cdb66b1f936593c693ee54f19d643cc3a97a9635c05f2c959aca817668006f609ddb503a84d0bf5d510065674e  flashrom-0.9.7.tar.bz2
e4e6ca6b1da633e01be8e91565867c52307e00c1bd90f8fc303745f8837ca8bbb7f9cad1d436eec52c11b28e380702c7871623a1e69274d745eb806dbb21add4  spi-ioctl.patch"