aboutsummaryrefslogtreecommitdiffstats
path: root/main/lftp/APKBUILD
blob: e9c2d9792258eb06be999cb955264276436d2570 (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
49
50
51
52
53
54
55
56
57
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=lftp
pkgver=4.6.0
pkgrel=0
pkgdesc="LFTP is sophisticated ftp/http client"
url="http://lftp.yar.ru/"
arch="all"
license="GPL"
depends=
makedepends="gnutls-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() {
        local i
        cd "$_builddir"
        for i in $source; do
                case $i in
                *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
                esac
        done
}

build() {
	cd "$_builddir"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/lftp \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-gnutls \
		--with-modules \
		--disable-nls \
		--disable-static \
		--with-gnutls \
		--without-openssl \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/*.la
	rm -f "$pkgdir"/usr/lib/charset.alias
}

md5sums="fc5f4e3b45c9011a193eb8c0c12eb2eb  lftp-4.6.0.tar.xz"
sha256sums="3ad874cea247380d3037931fe60876a7d5e2c5be05e2faca9f22af7dfeca5b93  lftp-4.6.0.tar.xz"
sha512sums="5e92158334cd91b39f677467791ba7bfbe72aff7443a6ca2255c9e1daa85d8a284090d2286ad179fe2d54475dcf7cc35afce1cd8fab36db42f3c0a64efccf5a7  lftp-4.6.0.tar.xz"