summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/unzip/PKGBUILD
blob: 730beb9ce89ea30c60d931fe39c1d72074b887c7 (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
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: Dan McGee <dan@archlinux.org>

pkgname=unzip
pkgver=6.00
_pkgver=60
pkgrel=1
pkgdesc="Unpacks .zip archives such as those made by PKZIP"
arch=('i686' 'x86_64')
url="http://www.info-zip.org/"
license=('custom')
depends=('glibc')
source=(http://downloads.sourceforge.net/infozip/${pkgname}${_pkgver}.tar.gz)

build() {
  cd $startdir/src/${pkgname}${_pkgver}

  export CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64"
  if [ "${CARCH}" = "i686" ]; then
    make -f unix/Makefile LOCAL_UNZIP="$CFLAGS" prefix=/usr linux || return 1
  else
    make -f unix/Makefile LOCAL_UNZIP="$CFLAGS" prefix=/usr linux_noasm || return 1
  fi
  make -f unix/Makefile prefix=$startdir/pkg/usr install

  install -Dm644 LICENSE $startdir/pkg/usr/share/licenses/unzip/LICENSE
}
md5sums=('62b490407489521db863b523a7f86375'
         '2de357c2ba84576f38b17aed87915c87'
         'a4797a1f6e45385f5e021f9f6f2ec0fa'
         '83c7e79de9618bf7d081dd639dd3dde1')
md5sums=('62b490407489521db863b523a7f86375')