APKBUILD 812 Bytes
Newer Older
1 2
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=dmidecode
3
pkgver=2.11
4 5 6
pkgrel=0
pkgdesc="A utility for reporting system hardware as described by BIOS"
url="http://www.nongnu.org/dmidecode"
7
arch="all"
8 9 10 11
license="GPL"
depends=
makedepends=
subpackages="$pkgname-doc"
12
source="http://download.savannah.gnu.org/releases/dmidecode/dmidecode-$pkgver.tar.gz"
13 14 15 16 17 18 19 20 21 22 23

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

prepare() {
	cd "$_builddir"
	# apply patches here
	for i in "$srcdir"/*.patch; do
		[ -f "$i" ] || continue
		msg "Applying $i"
		patch -p1 -i "$i" || return 1
	done
24
	sed '/^PROGRAMS !=/d' -i Makefile
25 26 27 28
}

build() {
	cd "$_builddir"
29
	make prefix=/usr || return 1
30 31 32 33
}

package() {
	cd "$_builddir"
34
	make prefix=/usr DESTDIR="${pkgdir}" install
35 36
}

37
md5sums="9fddbbc3e330bee5950b8b5d424a57cb  dmidecode-2.11.tar.gz"