aboutsummaryrefslogtreecommitdiffstats
path: root/main/lftp/APKBUILD
blob: a89d169c741041c3b8912187d1bd03f30c61ccce (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
48
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=lftp
pkgver=4.7.4
pkgrel=0
pkgdesc="LFTP is sophisticated ftp/http client"
url="http://lftp.tech/"
arch="all"
license="GPL"
makedepends="zlib-dev libressl-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 install \
	     DESTDIR="$pkgdir" \
		|| return 1
	rm -f "$pkgdir"/usr/lib/charset.alias \
		|| return 1
	mkdir -p "$pkgdir"/usr/share/doc/$pkgname \
		|| return 1
	mv "$pkgdir"/usr/share/$pkgname "$pkgdir"/usr/share/doc/ \
		|| return 1
}

md5sums="74965c798b1806d0a2659d8a606ea47f  lftp-4.7.4.tar.xz"
sha256sums="bf67c4d128b6f769a4082947376a9679c5ee3463a24ab761a0757f75d70bd92c  lftp-4.7.4.tar.xz"
sha512sums="f978379b6ac0dfb46c06dee7205b0b751a75642868c4b1bf37ac681108b04a475232915bb7280ec9731af008e00e855bd9e2e8745307b6507d341f27e4025159  lftp-4.7.4.tar.xz"