summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bfde26cd9d42ad427fcdc60c73f23c8e6483b572 (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
# Maintainer: Ivan Shapovalov <intelfx100@gmail.com>
# Contributor: Alec Ari <neotheuser@ymail.com>

pkgname=ectool-svn
pkgver=r6637
pkgrel=1
pkgdesc="ectool is a small utility that dumps the RAM of a laptop's Embedded/Environmental Controller (EC)"
url="http://www.coreboot.org/Ectool"
arch=('i686' 'x86_64')
license=('GPL')
makedepends=('subversion')
source=('svn://coreboot.org/coreboot/trunk/util/ectool')
md5sums=('SKIP')
conflicts=('ectool')
provices=('ectool')
replaces=('ectool')

pkgver() {
	cd ectool

	local ver="$(svnversion)"
	printf "r%s" "${ver//[[:alpha:]]}"
}

prepare() {
	cd ectool

	# Makefile is broken #1
	sed -re 's|/sbin|/bin|' -i Makefile
}

build() {
	cd ectool

    make
}

package() {
	cd ectool

	# Makefile is broken #2
	install -d "$pkgdir/usr/bin"
	make PREFIX="$pkgdir/usr" install
}