blob: 6b216573ec16d771821d8a687771fd1f61f6fafb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# $Id: PKGBUILD 150452 2012-02-17 23:21:23Z allan $
# Maintainer:
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
# Contributor: Robson Peixoto
_pkgname=unzip
pkgname=unzip-libre
pkgver=6.0
pkgrel=6
pkgdesc="Unpacks .zip archives such as those made by PKZIP"
arch=('any')
url="http://www.info-zip.org/"
license=('custom')
depends=('bzip2' 'bash')
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
replaces=("${_pkgname}")
source=('http://downloads.sourceforge.net/infozip/unzip60.tar.gz'
'match.patch')
md5sums=('8e8a774e2006617d8787d095bb78c78a'
'e6d9f0c204c2abe6a57dc5e1637d5140')
build() {
cd ${srcdir}/${_pkgname}${pkgver/./}
# from http://bzr.trisquel.info/package-helpers/trunk/annotate/head%3A/helpers/natty/DATA/unzip/match.patch
patch -Np0 -i ${srcdir}/match.patch
# 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"
sed -i "/MANDIR =/s#)/#)/share/#" unix/Makefile
# 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
}
|