#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=thin-provisioning-tools
pkgver=1.0.3
pkgrel=01
pkgdesc='Suite of tools for manipulating the metadata of the dm-thin device-mapper target'
url="https://github.com/jthornber/thin-provisioning-tools"
#depends=('expat' 'gcc-libs' 'libaio')  # 0.9.0
#makedepends=('boost')		    # 0.9.0
depends=('gcc-libs')
makedepends=('cargo')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/jthornber/${pkgname}/archive/v${pkgver}.tar.gz")

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

}

#---- arch license gpg-key & sha256sums ----

arch=(x86_64)

license=(GPL3)

sha256sums=(8c912be0f7a1cdc40f37fd4226a1794a91fa31667231d4e88338f32cf84b88b6)  # v1.0.3.tar.gz

##  71c1a8a629fbc829f2cc5fc10be74aabdd36ca58f9a38048d22093ba6e1da7f4  thin-provisioning-tools-1.0.3-01-x86_64.pkg.tar.lz


