2012-01-27 15:53:37 +01:00
|
|
|
# Template file for 'bsdiff'
|
|
|
|
pkgname=bsdiff
|
|
|
|
version=4.3
|
2015-08-16 10:34:15 +02:00
|
|
|
revision=3
|
2013-08-26 09:19:23 +02:00
|
|
|
makedepends="bzip2-devel"
|
2013-08-26 09:17:00 +02:00
|
|
|
homepage="http://www.daemonology.net/bsdiff"
|
2012-01-27 15:53:37 +01:00
|
|
|
short_desc="Binary diff/patch utility"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-01-27 15:53:37 +01:00
|
|
|
license="Simplified BSD"
|
2013-08-26 09:17:00 +02:00
|
|
|
distfiles="$homepage/$pkgname-$version.tar.gz"
|
2012-01-27 15:53:37 +01:00
|
|
|
checksum=18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
for i in diff patch; do
|
2015-08-16 10:34:15 +02:00
|
|
|
sed -i 's%u_char%unsigned char%' bs${i}.c;
|
2013-04-12 08:55:23 +02:00
|
|
|
$CC $CFLAGS -Wall -lbz2 $LDFLAGS bs${i}.c -o bs${i}
|
2012-01-27 15:53:37 +01: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
|
|
|
|
}
|