# Maintainer: Shalygin Konstantin # Contributor: Shalygin Konstantin pkgname='libstoragemgmt' pkgver='1.8.5' pkgrel='1' pkgdesc='A library for storage management' arch=('any') url="https://github.com/libstorage/${pkgname}" license=('GPL') depends=('libxml2' 'icu' 'sqlite' 'openssl' 'libconfig') makedepends=('check' 'chrpath' 'valgrind' 'python-pywbem') optdepends=('arcconf: support for Microsemi (Adaptec) controllers') source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz") sha256sums=('cc54c9a2d9447819da2c43f5956edbb21748a4978546d1dac97adaadcb60911c') prepare() { cd "${srcdir}/${pkgname}-${pkgver}" autoreconf -fvi PYTHON="/usr/bin/python" ./configure \ --prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/bin \ --sysconfdir=/etc \ --localstatedir=/var \ --libdir=/usr/lib \ --datarootdir=/usr/share \ --datadir=/usr/share \ --with-python3 } build() { cd "${srcdir}/${pkgname}-${pkgver}" make } check() { cd "${srcdir}/${pkgname}-${pkgver}/test" ./runtests.sh } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install }