aboutsummaryrefslogtreecommitdiffstats
path: root/main/lftp/APKBUILD
blob: 342914293cccd25b5ab3c6e6aa21c85faa9f7bc9 (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.6
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="377cc2caa2fc92755160270768e51604  lftp-4.4.6.tar.bz2"
sha256sums="904f1cb4d96d04c4bca1caa1c1a483fe436d14470bc533efe31ae676e85e88f5  lftp-4.4.6.tar.bz2"
sha512sums="941dc42e11bc35385aa2fa217ff1b5ab11ed9fa530549fd773cd608b2692c296c05923b5270e9f4dd373cb55003fe04206b3f1f56070d49f37dfb9962219f1ca  lftp-4.4.6.tar.bz2"