summaryrefslogtreecommitdiffstats
path: root/main/lftp/APKBUILD
blob: f2c9d7fe31396bad6c0553effaf9edd1684abfd1 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=lftp
pkgver=4.4.9
pkgrel=0
pkgdesc="LFTP is sophisticated ftp/http client"
url="http://lftp.yar.ru/"
arch="all"
license="GPL"
depends=
makedepends="openssl-dev readline-dev ncurses-dev gettext-dev"
subpackages="$pkgname-doc"
source="http://ftp.yars.free.net/pub/source/lftp/lftp-${pkgver}.tar.bz2"

_builddir="$srcdir/$pkgname-$pkgver"


prepare() {
	cd "$_builddir"
	# fix eglibc-2.16 build issue
	sed -i -e '/gets is a/d' \
		lib/stdio.in.h || return 1
}

build() {
	cd "$_builddir"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/lftp \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-modules \
		--disable-nls \
		--with-openssl \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="f942d632d71b7bf35dca2e75a8432b83  lftp-4.4.9.tar.bz2"
sha256sums="425eb8d8b4df18f6ecd96659ff5e28365e3f1bbb8fe2e19605ce5dd2fa1fc69e  lftp-4.4.9.tar.bz2"
sha512sums="5db837c2a6709e49654492cc2c170e39b8ccab47dbc9acc1e02ae8b44d6d7831c82a6bc9a442ade0230d2674b16a12b9ea6e1b3123e618490c383b4a26ce2328  lftp-4.4.9.tar.bz2"