upgpkg: rsync 3.2.5pre2-1: new upstream (pre-)release, pull in all available fixes
[arch-packages.git] / rsync / trunk / PKGBUILD
blobe4fe35bbe34d6d77670672af6905edeb81f37659
1 # Maintainer: Christian Hesse <mail@eworm.de>
3 pkgname=rsync
4 _tag='1bb1c21c8ffce4ea922972ce4060eb72c6a4481b' # git rev-parse v${pkgver}
5 pkgver=3.2.5pre2
6 pkgrel=1
7 pkgdesc='A fast and versatile file copying tool for remote and local files'
8 arch=('x86_64')
9 url='https://rsync.samba.org/'
10 license=('GPL3')
11 depends=('acl' 'libacl.so' 'lz4' 'openssl' 'perl' 'popt' 'xxhash' 'libxxhash.so'
12          'zlib' 'zstd')
13 makedepends=('git' 'python-commonmark')
14 backup=('etc/rsyncd.conf'
15         'etc/xinetd.d/rsync')
16 validpgpkeys=('0048C8B026D4C96F0E589C2F6C859FB14B96A8C5') # Wayne Davison <wayned@users.sourceforge.net>
17 source=("git+https://github.com/WayneD/rsync#tag=${_tag}?signed"
18         'rsyncd.conf')
19 sha256sums=('SKIP'
20             '733ccb571721433c3a6262c58b658253ca6553bec79c2bdd0011810bb4f2156b')
22 prepare() {
23         cd "$srcdir/rsync"
25         git merge --ff-only 'cff8f044776c5143a5b270969d4bb0f1fea8b017'
28 build() {
29         cd "$srcdir/rsync"
31         ./configure \
32                 --prefix=/usr \
33                 --disable-debug \
34                 --with-included-popt=no \
35                 --with-included-zlib=no
36         make
39 check() {
40         cd "$srcdir/rsync"
42         make test
45 package() {
46         cd "$srcdir/rsync"
48         make DESTDIR="$pkgdir" install
49         install -Dm0644 ../rsyncd.conf "$pkgdir/etc/rsyncd.conf"
50         install -Dm0644 packaging/lsb/rsync.xinetd "$pkgdir/etc/xinetd.d/rsync"
51         install -Dm0644 packaging/systemd/rsync.service "$pkgdir/usr/lib/systemd/system/rsyncd.service"
52         install -Dm0644 packaging/systemd/rsync.socket "$pkgdir/usr/lib/systemd/system/rsyncd.socket"
53         install -Dm0644 packaging/systemd/rsync@.service "$pkgdir/usr/lib/systemd/system/rsyncd@.service"
54         install -Dm0755 support/rrsync "$pkgdir/usr/lib/rsync/rrsync"