### this file is sourced not run
PKGVER=0.7.8 # commit ac77d02 (13 Oct 2018) is two commits after 0.7.8 
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=multipath-tools-ac77d02.tar.gz
MD5SUM=8e35e7897492e23095399a61996cee4f
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ='lvm2' # 
SLACKDESC="kpartx: kpartx $PKGVER (Alternative loop-mounter)  
kpartx:  
kpartx: kpartx is a loop-mounter that can mount disk image files with 
kpartx: partitions. kpartx is part of multipath-tools.  
kpartx: 
kpartx: http://christophe.varoqui.free.fr/
kpartx: 
kpartx: 
kpartx: 
kpartx: 
kpartx: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/multipath* &&
	patch -Np1 -i ../pkg/delete_loop_after_list.patch
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/multipath*/kpartx
	make $MAKEFLAGS && 
	install -m 755 kpartx /sbin &&
	gunzip -c kpartx.8.gz > /usr/share/man/man8/kpartx.8 &&
	pkg_build_slackdesc
}
