mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 23:22:24 +01:00
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
# Contributor: Jeremy Thomerson <jeremy@thomersonfamily.com>
|
|
# Maintainer: Jeremy Thomerson <jeremy@thomersonfamily.com>
|
|
pkgname=librsync
|
|
pkgver=2.0.2
|
|
pkgrel=1
|
|
pkgdesc="librsync implements the rolling-checksum algorithm of rsync"
|
|
url="https://github.com/librsync/librsync"
|
|
arch="all"
|
|
license="LGPL-2.1"
|
|
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"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
cmake \
|
|
-DCMAKE_BUILD_TYPE=release \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
.
|
|
make
|
|
|
|
}
|
|
|
|
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="5d2bc1d62b37e9ed7416203615d0a0e3c05c4c884b5da63eda10dd5c985845b500331bce226e4d45676729382c85b41528282e25d491afda31ba434ac0fefad7 librsync-2.0.2.tar.gz"
|