summaryrefslogtreecommitdiffstats
path: root/main/lftp/APKBUILD
blob: e3a96190d803b00aa98a629223eae5bd16b4ab7f (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=lftp
pkgver=4.4.5
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 --prefix=/usr \
		--sysconfdir=/etc/lftp \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-modules \
		--disable-nls \
		--with-openssl
	make || return 1
}

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

md5sums="a8abdc87a00174571908ffaf5cdffd45  lftp-4.4.5.tar.bz2"
sha256sums="0ce93e3c1144920b1accbf0922af4aaef149b7e117ed150513faf06c55329cf1  lftp-4.4.5.tar.bz2"
sha512sums="db0a603163018f4f0363ae75cd632271e6333341b7afedbfbdca1c7b9b3fb8f68211a0e402a6a652c82e411c31273bf8c0403fb6a6ab891f806a08cab2724396  lftp-4.4.5.tar.bz2"