# Template file for 'kpartx' pkgname=kpartx version=0.8.4 revision=1 wrksrc="multipath-tools-${version}" build_wrksrc=kpartx build_style=gnu-makefile make_install_args="libudevdir=/usr/lib/udev bindir=/usr/bin" makedepends="device-mapper-devel" short_desc="Create device maps from partition tables" maintainer="Leah Neukirchen " license="GPL-2.0-or-later" homepage="http://christophe.varoqui.free.fr/" distfiles="https://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=refs/tags/${version}>kpartx-${version}.tar.gz" checksum=ccd73bf67621161d9e42d1a770c3a7efff6e252433e8b8ed5f64a88cb5e7151d LDFLAGS="-ldevmapper" CFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -I../libmultipath" post_extract() { sed -i 's/__kernel_uint32_t/uint32_t/g' kpartx/solaris.c sed -i 's,,,g' kpartx/lopart.c }