void-packages/srcpkgs/unzip/template

37 lines
1.0 KiB
Bash

# Template file for 'unzip'
pkgname=unzip
version=6.0
revision=14
makedepends="bzip2-devel"
short_desc="List, test and extract compressed files in a ZIP archive"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="Info-ZIP"
homepage="http://infozip.sf.net/"
distfiles="${SOURCEFORGE_SITE}/infozip/${pkgname}60.tar.gz"
checksum=036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
do_build() {
CFLAGS+=" -D_FILE_OFFSET_BITS=64 -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT \
-DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE \
-DNO_LCHMOD -LDDATE_FORMAT=DF_YMD -DUSE_BZIP2 -DNATIVE"
make ${makejobs} -f unix/Makefile LOCAL_UNZIP="$CFLAGS" \
prefix=/usr LF2="" CC=$CC CFLAGS="$CFLAGS" LFLAGS1="$LDFLAGS" \
D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2 unzips
}
do_check() {
make -f unix/Makefile test
}
do_install() {
cd ${wrksrc}
make ${makejobs} -f unix/Makefile prefix=${DESTDIR}/usr \
INSTALL_PROGRAM="install" install
vmkdir usr/share
mv ${DESTDIR}/usr/man ${DESTDIR}/usr/share
vlicense LICENSE
}