ayaports/user/znapzend/APKBUILD
build@apk-groulx 7c2d413554 3.17 cleanup
2023-01-11 00:40:45 +00:00

38 lines
1.4 KiB
Text

# Maintainer: Antoine Martin <antoine@ayakael.net>
pkgname=znapzend
pkgver=0.21.1
pkgrel=0
pkgdesc="ZnapZend is a ZFS centric backup tool."
arch='all'
url="http://www.znapzend.org/"
license='GPL'
depends='perl zfs mbuffer'
makedepends='perl-dev wget'
source="https://github.com/oetiker/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-doc"
options=!check
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
sed -i 's:@BINDIR@:/usr/bin:' "init/znapzend.sysv.in"
}
build() {
./configure --prefix="/usr/share/${pkgname}"
make
}
package() {
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="
2fd39109d6967d8dc434c346f7ba6d912519d71294dcc017a90727e56250298d753671986ed34e72fb45eb20fb17aa62945af055df17f2cc1ab04cd28369c649 znapzend-0.21.1.tar.gz
"