diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/unzip |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/unzip')
-rw-r--r-- | extra/unzip/PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/extra/unzip/PKGBUILD b/extra/unzip/PKGBUILD new file mode 100644 index 000000000..77608dd01 --- /dev/null +++ b/extra/unzip/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 70615 2010-02-27 15:46:11Z thayer $ +# Maintainer: Thayer Williams <thayer@archlinux.org> +# Contributor: Douglas Soares de Andrade <douglas@archlinux.org> +# Contributor: Robson Peixoto + +pkgname=unzip +pkgver=6.0 +pkgrel=5 +pkgdesc="Unpacks .zip archives such as those made by PKZIP" +arch=('i686' 'x86_64') +url="http://www.info-zip.org/" +license=('custom') +depends=('bzip2' 'bash') +source=('http://downloads.sourceforge.net/infozip/unzip60.tar.gz') +md5sums=('62b490407489521db863b523a7f86375') + +build() { + cd ${srcdir}/${pkgname}${pkgver/./} + + # set CFLAGS -- from Debian + export CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -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 -DNATIVE" + + # make -- from Debian + make -f unix/Makefile LOCAL_UNZIP="$CFLAGS" prefix=/usr LF2="" \ + D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2 unzips || return 1 + + # install -- from Debian + make -f unix/Makefile prefix=${pkgdir}/usr INSTALL_PROGRAM="install" install || return 1 + + # install the license file + install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/unzip/LICENSE || return 1 + + # fix manpage location + mkdir -p ${pkgdir}/usr/share || return 1 + mv ${pkgdir}/usr/man ${pkgdir}/usr/share/ || return 1 +} + |