jobcore/thin-provisioning-tools/PKGBUILD-arch

31 lines
815 B
Text

# Maintainer: Eric Bélanger <eric@archlinux.org>
# Contributor: Jason Hall <cakersq@gmail.com>
pkgname=thin-provisioning-tools
pkgver=1.0.11
pkgrel=1
pkgdesc='Suite of tools for manipulating the metadata of the dm-thin device-mapper target'
arch=('x86_64')
url='https://github.com/jthornber/thin-provisioning-tools'
license=('GPL3')
depends=('gcc-libs')
makedepends=('cargo')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/jthornber/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('a4262cc3559ff0f08b0485e3d6eaeb92aac1260080336ba6e08eae9cd162bae2')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cargo build --release
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make \
DESTDIR="${pkgdir}"/usr \
BINDIR="${pkgdir}"/usr/bin \
DATADIR="${pkgdir}"/usr/share \
install
}