aboutsummaryrefslogtreecommitdiffstats
path: root/main/lftp/APKBUILD
blob: 082589c009880cdf9822e7e22f3d12b97500348e (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
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=lftp
pkgver=4.7.1
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"
subpackages="$pkgname-doc"
source="http://lftp.yar.ru/ftp/$pkgname-$pkgver.tar.xz"

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

build() {
	cd "$_builddir"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--with-openssl \
		--with-modules \
		--disable-nls \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/charset.alias
	mkdir -p "$pkgdir"/usr/share/doc/$pkgname
	mv "$pkgdir"/usr/share/$pkgname "$pkgdir"/usr/share/doc/
}

md5sums="7dfb03c6544efeef633bc28ba7df8b77  lftp-4.7.1.tar.xz"
sha256sums="fd5a5cff636629a19c60a60007f4b0dc0c7d59566b1e8a50f668d2f7e67740e5  lftp-4.7.1.tar.xz"
sha512sums="b65ce2514f954cfcef9cee721b0b6d5607457ce541e40ee758d9f9f4dabab58edcb9a70ac7aa46c17d80d83b595f32cc40ea664606ba7310ed24e58bd4add494  lftp-4.7.1.tar.xz"