# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=sg3_utils pkgver=1.41 pkgrel=0 pkgdesc="Generic SCSI utilities" url="http://sg.danny.cz/sg/sg3_utils.html" arch="all" license="GPL" depends= makedepends="linux-headers" install= subpackages="$pkgname-dev $pkgname-doc" source="http://sg.danny.cz/sg/p/$pkgname-$pkgver.tgz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" # apply patches here } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 } md5sums="86ebe3881535ee5c48f81be5be44b362 sg3_utils-1.41.tgz" sha256sums="c4e2893c36df1ee5b07840ab7c22129544f5dc8a55f7cc8815c9cd8e44ec31c0 sg3_utils-1.41.tgz" sha512sums="ceca778a2f4d16dd341dd47cc1d92df5bc85d7f75d75e6b7c1a99c31e03e98103a18abf624880172e162bd0b751f760f0e919cbbb989303a9e1fbe9ff3eb1f46 sg3_utils-1.41.tgz"