2012-01-27 14:53:37 +00:00
|
|
|
# Template file for 'bsdiff'
|
|
|
|
pkgname=bsdiff
|
|
|
|
version=4.3
|
2012-06-03 07:08:53 +00:00
|
|
|
revision=1
|
2013-08-26 07:19:23 +00:00
|
|
|
makedepends="bzip2-devel"
|
2013-08-26 07:17:00 +00:00
|
|
|
homepage="http://www.daemonology.net/bsdiff"
|
2012-01-27 14:53:37 +00:00
|
|
|
short_desc="Binary diff/patch utility"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="Simplified BSD"
|
2013-08-26 07:17:00 +00:00
|
|
|
distfiles="$homepage/$pkgname-$version.tar.gz"
|
2012-01-27 14:53:37 +00:00
|
|
|
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)."
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
for i in diff patch; do
|
2013-04-12 06:55:23 +00:00
|
|
|
$CC $CFLAGS -Wall -lbz2 $LDFLAGS bs${i}.c -o bs${i}
|
2012-01-27 14:53:37 +00:00
|
|
|
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
|
|
|
|
}
|
2013-04-12 06:55:23 +00:00
|
|
|
|
|
|
|
bsdiff_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|