summaryrefslogtreecommitdiffstats
path: root/main/lftp/APKBUILD
blob: 539ff03e103d3d5bc2fba3eb4cf9b1c6b899ab58 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=lftp
pkgver=4.4.10
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://lftp.yar.ru/ftp/lftp-$pkgver.tar.xz"

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


prepare() {
	cd "$_builddir"
}

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="1b8d77f1a5a9cfe4e48e45636b775101  lftp-4.4.10.tar.xz"
sha256sums="04eba6be3ebb7b6074017d5c56f2cc106122edd055bbc446a264400214c56830  lftp-4.4.10.tar.xz"
sha512sums="b3799b397fe2f3eb739772efcf918c486ebc9d1b1362c5a2cddc147f4490ea6d46a28befa2c0174add89d6a51136e8c102712dbbdefa1cb1c70143b364d39847  lftp-4.4.10.tar.xz"