27 lines
652 B
Bash
27 lines
652 B
Bash
# Template file for 'bsdiff'
|
|
pkgname=bsdiff
|
|
version=4.3
|
|
revision=4
|
|
makedepends="bzip2-devel"
|
|
short_desc="Binary diff/patch utility"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="http://www.daemonology.net/bsdiff"
|
|
distfiles="${homepage}/${pkgname}-${version}.tar.gz"
|
|
checksum=18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48
|
|
|
|
do_build() {
|
|
for i in diff patch; do
|
|
sed -i 's%u_char%unsigned char%' bs${i}.c;
|
|
$CC $CFLAGS -Wall -lbz2 $LDFLAGS bs${i}.c -o bs${i}
|
|
done
|
|
}
|
|
|
|
do_install() {
|
|
for i in diff patch; do
|
|
vbin bs${i}
|
|
vman bs${i}.1
|
|
done
|
|
sed -n '0,/^$/p' bsdiff.c > LICENSE
|
|
vlicense LICENSE
|
|
}
|