aboutsummaryrefslogtreecommitdiffstats
path: root/main/lftp/APKBUILD
blob: 75dfd0285648a40faf0698cc1c0a4a2b3d8685ce (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
58
59
60
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=lftp
pkgver=4.4.15
pkgrel=1
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
	musl-fix.patch"

_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="f19cc0cea1d427aa2a952b27661b91e5  lftp-4.4.15.tar.xz
696ee578b149914ad230190fba6b83d6  musl-fix.patch"
sha256sums="75f40b7ab438a7b295410eb3e1ec8460e36ad2d48785383a6fc9201905db6868  lftp-4.4.15.tar.xz
8b85bfa39de217d8fb765ee9b8f26b4368fd9002a40e5b75dee466c3a59024cd  musl-fix.patch"
sha512sums="1d828a7b2ff808a0ee78f51c265d58df677e67cec9b4744cbd3a34816aba324199202094fa4144665e8d64385df7e76a54c6dc415e9ff33e97adab2eb0edaf4e  lftp-4.4.15.tar.xz
e9fab08f570032ad6b006d05446d583441dc5a1c236343b8de89f31fad7df2f969cfe9f888c371acbf24c69b2c07e66d736105101739cc4753299feef7f372a4  musl-fix.patch"