# Maintainer: Antoine Martin pkgname=znapzend pkgver=0.19.1 pkgrel=1 pkgdesc="ZnapZend is a ZFS centric backup tool." arch='all' url="http://www.znapzend.org/" license='GPL' depends='perl zfs mbuffer' makedepends='perl-dev' source="https://github.com/oetiker/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz" subpackages="${pkgname}-doc" prepare() { cd "${srcdir}/${pkgname}-${pkgver}" sed -i 's:@BINDIR@:/usr/bin:' "init/znapzend.sysv.in" } build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix="/usr/share/${pkgname}" make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install mkdir -p "${pkgdir}/usr/bin" "${pkgdir}/etc/init.d" "${pkgdir}/usr/share/man/man1" ln -s "/usr/share/${pkgname}/bin/znapzend" "${pkgdir}/usr/bin/znapzend" ln -s "/usr/share/${pkgname}/bin/znapzendzetup" "${pkgdir}/usr/bin/znapzendzetup" ln -s "/usr/share/${pkgname}/bin/znapzendztatz" "${pkgdir}/usr/bin/znapzendztatz" install -m 644 "init/znapzend.sysv" "${pkgdir}/etc/init.d/znapzend" install -m 644 "man/znapzend.1" "man/znapzendzetup.1" "man/znapzendztatz.1" "${pkgdir}/usr/share/man/man1" chmod 777 "${pkgdir}/usr/share/znapzend/lib/x86_64-linux-thread-multi/auto/List/Util/Util.so" } sha512sums="7cfd00ab813571f2b29ae51a83281f1093914fdb4a5dfcd59768d017b14110ffb969cf13052eed0de06df6c072e689f4ab041ca310e05d3e90c0bbc2f174e9cc znapzend-0.19.1.tar.gz"