diff --git a/srcpkgs/bsdiff/bsdiff.rshlibs b/srcpkgs/bsdiff/bsdiff.rshlibs new file mode 100644 index 00000000000..6295e0635cf --- /dev/null +++ b/srcpkgs/bsdiff/bsdiff.rshlibs @@ -0,0 +1,2 @@ +libbz2.so.1 +libc.so.6 diff --git a/srcpkgs/bsdiff/template b/srcpkgs/bsdiff/template new file mode 100644 index 00000000000..41121a3a5df --- /dev/null +++ b/srcpkgs/bsdiff/template @@ -0,0 +1,31 @@ +# Template file for 'bsdiff' +pkgname=bsdiff +version=4.3 +homepage="http://www.daemonology.net/bsdiff" +distfiles="$homepage/$pkgname-$version.tar.gz" +short_desc="Binary diff/patch utility" +maintainer="Juan RP " +license="Simplified BSD" +checksum=18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48 +long_desc=" + bsdiff and bspatch are tools for building and applying patches to binary files. + By using suffix sorting (specifically, Larsson and Sadakane's qsufsort) and + taking advantage of how executable files change, bsdiff routinely produces + binary patches 50-80% smaller than those produced by Xdelta, and 15% smaller + than those produced by .RTPatch (a $2750/seat commercial patch tool)." + +Add_dependency build bzip2-devel + +do_build() { + for i in diff patch; do + gcc ${XBPS_CFLAGS} -Wall \ + -lbz2 ${XBPS_LDFLAGS} bs${i}.c -o bs${i} + done +} + +do_install() { + for i in diff patch; do + vinstall bs${i} 755 usr/bin + vinstall bs${i}.1 644 usr/share/man/man1 + done +}