diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-12-27 17:15:25 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-12-27 17:15:25 -0300 |
commit | b24bcd7ea54466fae5136027d6b5bd9fb3741012 (patch) | |
tree | 960c2a0a2078b7aebcf5df4f37c096bf2632f21b /libre/unzip-libre/PKGBUILD | |
parent | e17d5d9b8e7dec6686b6bae6d496c3fcde0c2303 (diff) | |
download | abslibre-b24bcd7ea54466fae5136027d6b5bd9fb3741012.tar.gz abslibre-b24bcd7ea54466fae5136027d6b5bd9fb3741012.tar.bz2 abslibre-b24bcd7ea54466fae5136027d6b5bd9fb3741012.zip |
libre/unzip-libre-6.0-5
Diffstat (limited to 'libre/unzip-libre/PKGBUILD')
-rw-r--r-- | libre/unzip-libre/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/libre/unzip-libre/PKGBUILD b/libre/unzip-libre/PKGBUILD new file mode 100644 index 000000000..20c3885f9 --- /dev/null +++ b/libre/unzip-libre/PKGBUILD @@ -0,0 +1,50 @@ +# $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 +pkgname=unzip-libre +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') +provides=("${_pkgname}=${pkgver}") +conflicts=("${_pkgname}") +replaces=("${_pkgname}") +source=("https://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}-${pkgrel}-any.src.tar.xz") + + +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 + +} + +package(){ + cd ${srcdir}/${_pkgname}${pkgver/./} + + # install -- from Debian + make -f unix/Makefile prefix=${pkgdir}/usr INSTALL_PROGRAM="install" install + + # install the license file + install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/unzip/LICENSE + + # fix manpage location + mkdir -p ${pkgdir}/usr/share + mv ${pkgdir}/usr/man ${pkgdir}/usr/share/ +} + +md5sums=('8e8a774e2006617d8787d095bb78c78a') |