# $Id: PKGBUILD 195238 2013-09-28 21:28:47Z thomas $
# Maintainer: Eric BĂ©langer <eric@archlinux.org>
# Contributor: Jason Hall <cakersq@gmail.com>

pkgname=thin-provisioning-tools
pkgver=0.2.7
pkgrel=1
pkgdesc="A suite of tools for manipulating the metadata of the dm-thin device-mapper target"
arch=('i686' 'x86_64')
url="https://github.com/jthornber/thin-provisioning-tools"
license=('GPL3')
depends=('expat' 'gcc-libs')
makedepends=('boost')
source=(https://github.com/jthornber/${pkgname}/archive/v${pkgver}.tar.gz)
sha1sums=('23ce1110899adce9406aa614a4ee19950e00ee7a')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  autoconf
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" BINDIR="${pkgdir}"/usr/bin MANDIR=/usr/share/man install 
}