# Maintainer: Jiachen YANG # Contributor: Dan Beste pkgname='stratisd' pkgver=3.2.3 pkgrel=1 pkgdesc='Easy to use local storage management for Linux.' arch=('x86_64') url='https://stratis-storage.github.io/' license=('MPL2') makedepends=('asciidoc' 'cargo' 'rust' 'clang') depends=('dbus' 'cryptsetup' 'util-linux-libs' 'clevis' 'systemd') optdepends=('stratis-cli: command line interface' 'dracut: stratis as root filesystem support') checkdepends=('python-pyudev') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/stratis-storage/stratisd/archive/v${pkgver}.tar.gz") b2sums=('2f1f31e7f8889f0f93a8f05f76eb65389536bbb92ad8c2b5921e16ea64bb0021261385bd381e01b80a02ae41c0a2ed0e3a4d68d8465935eaba2c590871cd7187') prepare() { cd "${pkgname}-${pkgver}" # patch libexec path in configs configs=(dracut/90stratis/module-setup.sh dracut/90stratis/stratisd-min.service) for file in ${configs[@]}; do echo "Patching libexec in $file" sed -i 's,/usr/libexec,/usr/lib,g' $file done sed -e 's|-D unused||' -e 's|-D warnings||' -i Makefile # Fix build } build() { cd "${pkgname}-${pkgver}" # Release export LIBEXECDIR=/usr/lib make release make release-min make docs/stratisd.8 } check() { cd "${pkgname}-${pkgver}" export LIBEXECDIR=/usr/lib make test } package() { cd "${pkgname}-${pkgver}" export LIBEXECDIR=/usr/lib install -dm755 "${pkgdir}/usr/lib/systemd/system-generators" install -dm755 "${pkgdir}/usr/bin" make install DESTDIR="${pkgdir}" PREFIX="/usr" LIBEXECDIR="/usr/lib" install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } # vim: ts=2 sw=2 et: