summaryrefslogtreecommitdiff
path: root/extra/lftp/PKGBUILD
blob: 53c5482b6d26b8c0a7b319377bea469839fa3e8c (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
# $Id: PKGBUILD 162978 2012-07-04 13:56:20Z andyrtr $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Aaron Griffin <aaron@archlinux.org>

pkgname=lftp
pkgver=4.3.8
pkgrel=1
pkgdesc="Sophisticated command line based FTP client"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL3')
depends=('gcc-libs' 'readline>=6.2' "gnutls" "expat>=2.0.1-4" 'sh')
optdepends=('perl: needed for convert-netscape-cookies and verify-file')
url="http://lftp.yar.ru/"
backup=('etc/lftp.conf')
source=(http://ftp.yars.free.net/pub/source/lftp/${pkgname}-${pkgver}.tar.bz2
        lftp-4.3.8-gets.patch)
md5sums=('adced9c3e0f6b96821811dc87c0a1eeb'
         '932db2d498846be7ba90780ee4fcb158')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  # A patch from Gentoo fixing build with newer glibc.
  patch -Np1 -i "$srcdir/lftp-4.3.8-gets.patch"
  ./configure --prefix=/usr --with-gnutls \
	--without-openssl --disable-static
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
  rm -rf ${pkgdir}/usr/lib
}