# Description: System's hardware information of your BIOS according to SMBIOS/DMI standard.
# URL: http://www.nongnu.org/dmidecode/
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Victor Martinez, pitillo at ono dot com

name=dmidecode
version=2.12
release=1
source=(http://download.savannah.gnu.org/releases/$name/$name-$version.tar.gz)

build() {
	cd $name-$version

	sed -i \
		-e 's|/usr/local|/usr|' \
		-e 's|/share/man|/man|' \
		-e '42d' Makefile

	make
	make DESTDIR=$PKG install
	rm -rf $PKG/usr/share/doc
	rmdir $PKG/usr/share
}