aboutsummaryrefslogblamecommitdiffstats
path: root/main/librsync/APKBUILD
blob: 3648bb9b96b9f75af544e005e619894bb3a588d0 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                            
            
        
                                                                     
                                          
          
                  
                                                    
                                       

                                                                                              
 
         
                      




                                             
            
 


           
                      


                                                                               

 
                                                                                                                                                                    
# 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"