### this file is sourced not run
PKGVER=3.1.debian1
PKGBUILD=1
PKGARCH=x86_64

# source: james/debian
TARBALL=dmidecode-3.1.tar.xz
MD5SUM=679c2c015c515aa6ca5f229aee49c102
SRC_URL=http://download.savannah.gnu.org/releases/dmidecode/$TARBALL
BUNDLE=

SLACKREQ='' 
SLACKDESC="dmidecode: dmidecode $PKGVER (System Information)  
dmidecode:  
dmidecode: Dmidecode reports information about the system's hardware as 
dmidecode: described in the system BIOS according to the SMBIOS/DMI standard. 
dmidecode: This information typically includes system manufacturer, model 
dmidecode: name, serial number, BIOS version, asset tag as well as a lot of 
dmidecode: other details of varying level of interest and reliability 
dmidecode: depending on the manufacturer.  
dmidecode: 
dmidecode: http://nongnu.org/dmidecode/
dmidecode: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/dmidecode* &&
	# upstream patches
	for p in 1 2 3; do
		patch -Np1 -i ../pkg/upstream-$p.patch || return 1
	done &&
	# debian patches
	tar -xf $CHROOT_DIR/tmp/pkg/dmidecode_3.1-1.debian.tar.xz &&
	for p in $(cat debian/patches/series); do
		case $p in \#*) continue ;; esac
		patch -Np1 -i debian/patches/$p || return 1
	done
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/dmidecode*
	make prefix=/usr && make prefix=/usr install &&
	pkg_build_slackdesc
}


