updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / unzip-iconv / PKGBUILD
blobe3c3ede59e768371628651aad232406f2d70c1e7
1 # Maintainer: Procyon
2 # Contributor: Thayer Williams <thayer@archlinux.org>
3 # Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
4 # Contributor: Robson Peixoto
6 pkgname=unzip-iconv
7 pkgver=6.0
8 pkgrel=1
9 pkgdesc="Unpacks .zip archives such as those made by PKZIP. With iconv patch for -O / -I goodness."
10 arch=('i686' 'x86_64')
11 url="http://www.info-zip.org/"
12 license=('custom')
13 depends=('bzip2' 'bash')
14 provides=('unzip')
15 conflicts=('unzip')
16 source=('http://downloads.sourceforge.net/infozip/unzip60.tar.gz'
17         'unzip60-alt-iconv-utf8.patch')
18 md5sums=('62b490407489521db863b523a7f86375'
19          '4dcfb2084e9db5a3f411f470d92ab2a4')
21 build() {
22   cd ${srcdir}/unzip${pkgver/./}
24   # iconv patch
25   patch -Np1 -i ${srcdir}/unzip60-alt-iconv-utf8.patch
27   # set CFLAGS -- from Debian
28   export CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DACORN_FTYPE_NFS \
29   -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT \
30   -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD -DDATE_FORMAT=DF_YMD \
31   -DUSE_BZIP2 -DNATIVE"
33   # make -- from Debian
34   make -f unix/Makefile LOCAL_UNZIP="$CFLAGS" prefix=/usr LF2="" \
35   D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2 unzips || return 1
37   # install -- from Debian
38   make -f unix/Makefile prefix=${pkgdir}/usr INSTALL_PROGRAM="install" install || return 1
40   # install the license file
41   install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/unzip/LICENSE || return 1
43   # fix manpage location
44   mkdir -p ${pkgdir}/usr/share || return 1
45   mv ${pkgdir}/usr/man ${pkgdir}/usr/share/ || return 1