# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libatasmart pkgver=0.19 pkgrel=0 pkgdesc="ATA S.M.A.R.T. Reading and Parsing Library" url="http://0pointer.de/blog/projects/being-smart.html" arch="all" license="GPL" depends= depends_dev="udev-dev" makedepends="$depends_dev linux-headers" install= subpackages="$pkgname-dev $pkgname-doc" source="http://0pointer.de/public/$pkgname-$pkgver.tar.xz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" update_config_sub || return 1 # apply patches here } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-static \ --localstatedir=/var \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 } md5sums="53afe2b155c36f658e121fe6def33e77 libatasmart-0.19.tar.xz"