void-packages/srcpkgs/pbzip2/template

22 lines
660 B
Bash

# Template build file for 'pbzip2'.
pkgname=pbzip2
version=1.1.12
revision=2
makedepends="bzip2-devel"
short_desc="Parallel bzip2 file compressor"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://compression.ca/pbzip2/"
license="BSD"
distfiles="https://launchpad.net/pbzip2/${version%.*}/${version}/+download/pbzip2-${version}.tar.gz"
checksum=573bb358a5a7d3bf5f42f881af324cedf960c786e8d66dd03d448ddd8a0166ee
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"
}
do_install() {
make PREFIX=${DESTDIR}/usr install
vlicense COPYING
}