# Contributor: Jeremy Thomerson # Maintainer: Jeremy Thomerson pkgname=librsync pkgver=2.2.1 pkgrel=1 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/librsync/librsync/archive/v$pkgver.tar.gz" prepare() { default_prepare # don't invoke bash in test scripts sed -i 's,#! /bin/bash,#!/bin/sh,' tests/rdiff_bad_option.sh } build() { cmake -B build . \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_PREFIX=/usr make -C build } check() { make -C build check } package() { make -C build 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="6581a4285ebcfa1c4dfecac2d6796dab736a4c66a7fb82863c778506073446d9a113d39de7eb29e845a484646f1d8fec29019338bce31a091b0acdc461ab1bcd librsync-2.2.1.tar.gz"