zip: new package, zip 3.0
This commit is contained in:
parent
bcff4ab378
commit
85924e171c
71
zip/build.sh
Executable file
71
zip/build.sh
Executable file
@ -0,0 +1,71 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# This is a buildpkg build.sh script
|
||||||
|
# build.sh helper functions
|
||||||
|
. ${BUILDPKG_SCRIPTS}/build.sh.functions
|
||||||
|
#
|
||||||
|
###########################################################
|
||||||
|
# Check the following 4 variables before running the script
|
||||||
|
topdir=zip
|
||||||
|
version=3.0
|
||||||
|
pkgver=1
|
||||||
|
source[0]=http://prdownloads.sourceforge.net/infozip/${topdir}30.tar.gz
|
||||||
|
# If there are no patches, simply comment this
|
||||||
|
patch[0]=zip-3.0-use-gcc-as-cpp.patch
|
||||||
|
|
||||||
|
# Source function library
|
||||||
|
. ${BUILDPKG_SCRIPTS}/buildpkg.functions
|
||||||
|
|
||||||
|
# Global settings
|
||||||
|
LDFLAGS="-L$prefix/lib -R$prefix/lib -lbz2"
|
||||||
|
CPPFLAGS="-I$prefix/include"
|
||||||
|
shortroot=1
|
||||||
|
__configure="make"
|
||||||
|
make_build_target="-f unix/Makefile generic_gcc"
|
||||||
|
make_install_target="-f unix/Makefile install"
|
||||||
|
configure_args=($make_build_target LFLAGS2="$LDFLAGS" CC="gcc $CPPFLAGS")
|
||||||
|
no_configure=1
|
||||||
|
topsrcdir=${topdir}30
|
||||||
|
|
||||||
|
reg prep
|
||||||
|
prep()
|
||||||
|
{
|
||||||
|
generic_prep
|
||||||
|
}
|
||||||
|
|
||||||
|
reg build
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
setdir source
|
||||||
|
${__make} -e "${configure_args[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
reg check
|
||||||
|
check()
|
||||||
|
{
|
||||||
|
generic_check
|
||||||
|
}
|
||||||
|
|
||||||
|
reg install
|
||||||
|
install()
|
||||||
|
{
|
||||||
|
generic_install prefix
|
||||||
|
doc README BUGS LICENSE
|
||||||
|
${__mv} ${stagedir}${prefix}/man ${stagedir}${prefix}/share
|
||||||
|
}
|
||||||
|
|
||||||
|
reg pack
|
||||||
|
pack()
|
||||||
|
{
|
||||||
|
generic_pack
|
||||||
|
}
|
||||||
|
|
||||||
|
reg distclean
|
||||||
|
distclean()
|
||||||
|
{
|
||||||
|
clean distclean
|
||||||
|
}
|
||||||
|
|
||||||
|
###################################################
|
||||||
|
# No need to look below here
|
||||||
|
###################################################
|
||||||
|
build_sh $*
|
4
zip/meta/ChangeLog
Normal file
4
zip/meta/ChangeLog
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
CHANGELOG
|
||||||
|
---------
|
||||||
|
* Wed Nov 20 2013 Tom G. Christensen <swpkg@jupiterrise.com> - 3.0-1
|
||||||
|
- Import for tgcwarev2
|
12
zip/meta/pkgdef
Normal file
12
zip/meta/pkgdef
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[zip]
|
||||||
|
pkgname="${pkgprefix}${topdir}"
|
||||||
|
name="$topdir - Zip from Info-Zip"
|
||||||
|
pkgcat="application"
|
||||||
|
pkgvendor="http://www.info-zip.org/Zip.html"
|
||||||
|
shortdesc="A utility for creating zip files"
|
||||||
|
pkgver="$pkgver"
|
||||||
|
files(-,root,bin)
|
||||||
|
default_docs
|
||||||
|
$_bindir
|
||||||
|
$_mandir
|
||||||
|
|
19
zip/src/zip-3.0-use-gcc-as-cpp.patch
Normal file
19
zip/src/zip-3.0-use-gcc-as-cpp.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
diff -up zip30/unix/configure.cpp zip30/unix/configure
|
||||||
|
--- zip30/unix/configure.cpp 2008-06-20 05:32:20.000000000 +0200
|
||||||
|
+++ zip30/unix/configure 2013-05-09 20:26:44.042787000 +0200
|
||||||
|
@@ -218,15 +218,7 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
echo Check for the C preprocessor
|
||||||
|
-# on SVR4, cc -E does not produce correct assembler files. Need /lib/cpp.
|
||||||
|
CPP="${CC} -E"
|
||||||
|
-# solaris as(1) needs -P, maybe others as well ?
|
||||||
|
-[ -f /usr/ccs/lib/cpp ] && CPP="/usr/ccs/lib/cpp -P"
|
||||||
|
-[ -f /usr/lib/cpp ] && CPP=/usr/lib/cpp
|
||||||
|
-[ -f /lib/cpp ] && CPP=/lib/cpp
|
||||||
|
-[ -f /usr/bin/cpp ] && CPP=/usr/bin/cpp
|
||||||
|
-[ -f /xenix ] && CPP="${CC} -E"
|
||||||
|
-[ -f /lynx.os ] && CPP="${CC} -E"
|
||||||
|
|
||||||
|
echo "#include <stdio.h>" > conftest.c
|
||||||
|
$CPP conftest.c >/dev/null 2>/dev/null || CPP="${CC} -E"
|
Loading…
x
Reference in New Issue
Block a user