# Maintainer: John Ramsden pkgname=znapzend pkgver=0.21.1 pkgrel=1 pkgdesc="A ZFS centric backup tool to create snapshots and send them to backup locations." arch=('any') url="http://www.znapzend.org/" license=('GPL') depends=('perl' 'zfs') optdepends=('mbuffer: stream buffering') source=("https://github.com/oetiker/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz") sha256sums=('1b438816a9a647a5bb3282ad26a6a8cd3ecce0a874f2fb506cbc156527e188f7') build() { cd "${pkgname}-${pkgver}" ./configure --prefix="/opt/${pkgname}" make } package() { cd "${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install mkdir -p "${pkgdir}/usr/bin" "${pkgdir}/usr/lib/systemd/system" "${pkgdir}/usr/share/man/man1" ln -s "/opt/${pkgname}/bin/znapzend" "${pkgdir}/usr/bin/znapzend" ln -s "/opt/${pkgname}/bin/znapzendzetup" "${pkgdir}/usr/bin/znapzendzetup" ln -s "/opt/${pkgname}/bin/znapzendztatz" "${pkgdir}/usr/bin/znapzendztatz" install -m 644 "init/znapzend.service" "${pkgdir}/usr/lib/systemd/system/znapzend.service" install -m 644 "man/znapzend.1" "man/znapzendzetup.1" "man/znapzendztatz.1" "${pkgdir}/usr/share/man/man1" }