void-packages/srcpkgs/zip/template

20 lines
597 B
Text

# Template build file for 'zip'.
pkgname=zip
version=3.0
revision=2
wrksrc="zip30"
short_desc="Create/update ZIP files compatible with pkzip"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
homepage="http://infozip.sf.net/"
distfiles="${SOURCEFORGE_SITE}/infozip/zip30.tar.gz"
checksum=f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
do_build() {
sed -e "s,generic CC=gcc CPP=\"gcc -E\",generic CC=$CC CPP=\"$CPP -E\",g" -i unix/Makefile
make CC=$CC CXX=$CXX -f unix/Makefile generic_gcc
}
do_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} -f unix/Makefile install
}