summaryrefslogtreecommitdiffstats
path: root/main/dmidecode/APKBUILD
blob: 6ec5d238f01a81222c9a65dbe99fb8aa525cecd1 (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
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=dmidecode
pkgver=2.12
pkgrel=0
pkgdesc="A utility for reporting system hardware as described by BIOS"
url="http://www.nongnu.org/dmidecode"
arch="all"
license="GPL"
depends=
makedepends=
subpackages="$pkgname-doc"
source="http://download.savannah.gnu.org/releases/dmidecode/dmidecode-$pkgver.tar.gz"

_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
	sed -e '/^PROGRAMS !=/d' -e 's/-O2/-Os/' -i Makefile || return 1
}

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

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

md5sums="02ee243e1ecac7fe0d04428aec85f63a  dmidecode-2.12.tar.gz"
sha256sums="5a8214b99c1762f4510bd92baa279336e5fed6e5cd2e418d46d95a4ecc783922  dmidecode-2.12.tar.gz"
sha512sums="8203ca9620f9efca21e7efd9e6c5a6bb83d8b23bdd1b20923a5f83209d94685a1bca3c92474c22d12ac2aaef4bbc074d4dc9236e2fd93a36ebf3cc66c0dfdd73  dmidecode-2.12.tar.gz"