summaryrefslogtreecommitdiff
path: root/unzip
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-02-18 12:56:22 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-02-18 12:56:22 -0500
commit13984f725db156cbc952d0afe90f27da15a0b85d (patch)
treeb3a39b75ecaecca11ee1525a99153a7606e460cb /unzip
downloadspm_packages-13984f725db156cbc952d0afe90f27da15a0b85d.tar.gz
Initial commit
Diffstat (limited to 'unzip')
-rw-r--r--unzip/build.sh40
1 files changed, 40 insertions, 0 deletions
diff --git a/unzip/build.sh b/unzip/build.sh
new file mode 100644
index 0000000..6d6fd4f
--- /dev/null
+++ b/unzip/build.sh
@@ -0,0 +1,40 @@
+#!/bin/bash
+name=unzip
+version=6.0
+revision=0
+sources=(
+ "https://downloads.sourceforge.net/infozip/${name}${version//./}.tar.gz"
+)
+build_depends=(
+ "bzip2"
+)
+depends=(
+ "bzip2"
+)
+
+
+function prepare() {
+ tar xf ${name}${version//./}.tar.gz
+ cd ${name}${version//./}
+}
+
+function build() {
+
+ # DEFINES, make, and install args from Debian
+ DEFINES='-DACORN_FTYPE_NFS -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT \
+ -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD \
+ -DDATE_FORMAT=DF_YMD -DUSE_BZIP2 -DNOMEMCPY -DNO_WORKING_ISPRINT'
+
+ make -f unix/Makefile prefix="${_pkgdir}${_prefix}" \
+ D_USE_BZ2=-DUSE_BZIP2 \
+ L_BZ2=-lbz2 \
+ LF2="$LDFLAGS" \
+ CF="$CFLAGS $CPPFLAGS -I. $DEFINES" \
+ unzips
+}
+
+function package() {
+ make -f unix/Makefile \
+ install \
+ prefix="${_pkgdir}${_prefix}"
+}