# Contributor: Jeremy Thomerson # Maintainer: Jeremy Thomerson pkgname=librsync pkgver=2.1.0 pkgrel=0 pkgdesc="librsync implements the rolling-checksum algorithm of rsync" url="https://github.com/librsync/librsync" arch="all" license="LGPL-2.1-or-later" makedepends="cmake popt-dev bzip2-dev zlib-dev perl" subpackages="$pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare # don't invoke bash in test scripts sed -i 's,#! /bin/bash,#!/bin/sh,' tests/rdiff_bad_option.sh } build() { cd "$builddir" cmake \ -DCMAKE_BUILD_TYPE=release \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_PREFIX=/usr \ . make } check() { make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -D -m644 doc/rdiff.1 "$pkgdir/usr/share/man/man1/rdiff.1" install -D -m644 doc/librsync.3 "$pkgdir/usr/share/man/man3/librsync.3" } sha512sums="9b91f4b696c1d1cdacb5c0679c7df7a92641e0a6a599c2e5de2bc0af3052b2045bb16c40b072c40859074d792c78c57afb0817917fa9843b179befa4506ebf04 librsync-2.1.0.tar.gz"