archrelease: copy trunk to extra-x86_64
[arch-packages.git] / thin-provisioning-tools / repos / core-x86_64 / PKGBUILD
blobf00d974ae75151d10f39b6ad657c71032ce8f2b5
1 # Maintainer: Eric BĂ©langer <eric@archlinux.org>
2 # Contributor: Jason Hall <cakersq@gmail.com>
4 pkgname=thin-provisioning-tools
5 pkgver=1.0.3
6 pkgrel=1
7 pkgdesc='Suite of tools for manipulating the metadata of the dm-thin device-mapper target'
8 arch=('x86_64')
9 url='https://github.com/jthornber/thin-provisioning-tools'
10 license=('GPL3')
11 depends=('gcc-libs')
12 makedepends=('cargo')
13 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/jthornber/${pkgname}/archive/v${pkgver}.tar.gz")
14 sha256sums=('8c912be0f7a1cdc40f37fd4226a1794a91fa31667231d4e88338f32cf84b88b6')
16 build() {
17   cd "${srcdir}/${pkgname}-${pkgver}"
19   cargo build --release
22 package() {
23   cd "${srcdir}/${pkgname}-${pkgver}"
25   make \
26     DESTDIR="${pkgdir}"/usr \
27     BINDIR="${pkgdir}"/usr/bin \
28     DATADIR="${pkgdir}"/usr/share \
29     install