void-packages/srcpkgs/pbzip2/template

22 lines
671 B
Bash

# Template file for 'pbzip2'
pkgname=pbzip2
version=1.1.13
revision=2
makedepends="bzip2-devel"
short_desc="Parallel bzip2 file compressor"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="BSD-4-Clause"
homepage="http://compression.ca/pbzip2/"
distfiles="https://launchpad.net/pbzip2/${version%.*}/${version}/+download/pbzip2-${version}.tar.gz"
checksum=8fd13eaaa266f7ee91f85c1ea97c86d9c9cc985969db9059cdebcb1e1b7bdbe6
do_build() {
sed -e 's,$(PREFIX)/man,$(PREFIX)/share/man,g' -i Makefile
sed -e 's,\(ln -s -f \)$(PREFIX)/bin/,\1,' -i Makefile
make CXX=$CXX CXXFLAGS="$CXXFLAGS $LDFLAGS"
}
do_install() {
make PREFIX=${DESTDIR}/usr install
vlicense COPYING
}