aboutsummaryrefslogblamecommitdiffstats
path: root/main/dmidecode/APKBUILD
blob: 7f6d73410f52d64444e8d2d9aa0b4ae240b52562 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                                       
           


                                                                      
                 



                          
                                                                                       










                                             
                                         



                       
                                    



                       
                                                    

 
                                                                 
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=dmidecode
pkgver=2.10
pkgrel=0
pkgdesc="A utility for reporting system hardware as described by BIOS"
url="http://www.nongnu.org/dmidecode"
arch="x86 x86_64"
license="GPL"
depends=
makedepends=
subpackages="$pkgname-doc"
source="http://mirror.its.uidaho.edu/pub/savannah/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 '/^PROGRAMS !=/d' -i Makefile
}

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

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

md5sums="aee585f01a312f1ee6f82d42c00ad127  dmidecode-2.10.tar.gz"