APKBUILD 1.18 KB
Newer Older
Carlo Landmeter's avatar
Carlo Landmeter committed
1
2
3
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=lftp
Natanael Copa's avatar
Natanael Copa committed
4
pkgver=4.4.3
Natanael Copa's avatar
Natanael Copa committed
5
pkgrel=0
Carlo Landmeter's avatar
Carlo Landmeter committed
6
7
pkgdesc="LFTP is sophisticated ftp/http client"
url="http://lftp.yar.ru/"
8
arch="all"
Carlo Landmeter's avatar
Carlo Landmeter committed
9
license="GPL"
10
depends=
Natanael Copa's avatar
Natanael Copa committed
11
makedepends="openssl-dev readline-dev ncurses-dev gettext-dev"
Carlo Landmeter's avatar
Carlo Landmeter committed
12
13
14
subpackages="$pkgname-doc"
source="http://ftp.yars.free.net/pub/source/lftp/lftp-${pkgver}.tar.bz2"

Carlo Landmeter's avatar
Carlo Landmeter committed
15
16
_builddir="$srcdir/$pkgname-$pkgver"

17
18
19
20
21
22
23
24

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

Carlo Landmeter's avatar
Carlo Landmeter committed
25
build() {
Carlo Landmeter's avatar
Carlo Landmeter committed
26
	cd "$_builddir"
Carlo Landmeter's avatar
Carlo Landmeter committed
27
28
29
30
31
32
33
34
35

	./configure --prefix=/usr \
		--sysconfdir=/etc/lftp \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-modules \
		--disable-nls \
		--with-openssl
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
36
}
Carlo Landmeter's avatar
Carlo Landmeter committed
37

Natanael Copa's avatar
Natanael Copa committed
38
package() {
Carlo Landmeter's avatar
Carlo Landmeter committed
39
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
40
	make -j1 DESTDIR="$pkgdir" install
Carlo Landmeter's avatar
Carlo Landmeter committed
41
	rm "$pkgdir"/usr/lib/*.la
Carlo Landmeter's avatar
Carlo Landmeter committed
42
43
}

Natanael Copa's avatar
Natanael Copa committed
44
45
46
md5sums="b877c1f82b2d4dc503f40dcce4978ff4  lftp-4.4.3.tar.bz2"
sha256sums="672e1166f575768addfb849da72d7d39c89d2942a01d2df21979343dc989d8ad  lftp-4.4.3.tar.bz2"
sha512sums="a9c513c5c0807b0e2bb3e6a8ca3283afd5f664ec873fd5b73f15c3821de3738ae3019c3cf84e6aed17a16896300aa503531ea2774b16ade7762fe90bf016a36f  lftp-4.4.3.tar.bz2"