aboutsummaryrefslogtreecommitdiffstats
path: root/main/dmidecode/APKBUILD
blob: 46287c7c0c9750aa79bce9dab4dcec7a9a63ac01 (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
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=dmidecode
pkgver=3.3
pkgrel=0
pkgdesc="A utility for reporting system hardware as described by BIOS"
url="http://www.nongnu.org/dmidecode"
arch="all"
license="GPL-2.0-or-later"
options="!check" # No testsuite
subpackages="$pkgname-doc"
source="https://download.savannah.gnu.org/releases/dmidecode/dmidecode-$pkgver.tar.xz"


prepare() {
	default_prepare
	sed -e '/^PROGRAMS !=/d' -e 's/-O2/-Os/' -i Makefile
}

build() {
	make prefix=/usr
}

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

sha512sums="dc77f40a7898011cea1b747d4677be2fbe8f52ec6ac460a5656de2f3389eca83bc416d6494acbe759971b5afce37b78f21ab55c34d62b1105b800e31566d1d22  dmidecode-3.3.tar.xz"