# Template file for 'sg3_utils'
pkgname=sg3_utils
version=1.37
revision=1
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config"
short_desc="Generic SCSI utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://sg.danny.cz/sg/sg3_utils.html"
license="BSD, GPL-2"
distfiles="http://sg.danny.cz/sg/p/$pkgname-$version.tgz"
checksum=d34acaa353b525f77e1c9561c683e3cf7695e09eeeba611220558193db486c33

libsgutils_package() {
	short_desc+=" - shared library"
	replaces="sg3_utils<1.31"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}

sg3_utils-devel_package() {
	depends="libsgutils>=${version}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
	}
}