blob: ab1cd7892fba8e22bfbcaf3075a7d71ec3d1d642 (
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
61
62
63
64
65
66
67
68
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=lftp
pkgver=4.4.16
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 autoconf automake
libtool"
subpackages="$pkgname-doc"
source="http://lftp.yar.ru/ftp/lftp-$pkgver.tar.xz
0001-run-the-gunlib-checks-with-same-compiler-as-when-bui.patch
stdc-limit-macros.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
libtoolize --force && aclocal -I m4 && autoconf \
&& automake --add-missing || return 1
}
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="73e9084731e4ba9bd886a86fdccec519 lftp-4.4.16.tar.xz
91de52bcbda9490d62cea72be78ab72a 0001-run-the-gunlib-checks-with-same-compiler-as-when-bui.patch
c2e3e6b4aabd97658fe8488ff6859ea0 stdc-limit-macros.patch"
sha256sums="0b0ee4e3f6ea793842058a470dad5a6511d377b5f43f3370e552b10335a662c8 lftp-4.4.16.tar.xz
e50ae5f0db272a31146cc29909bd07a1b7c11c78dad6e9a51eb3ad4231b5c323 0001-run-the-gunlib-checks-with-same-compiler-as-when-bui.patch
9dcb0f0ef32e3a27c955aadf6af4d60ce98d14df8bc9bc0fcf72f7c6479d555b stdc-limit-macros.patch"
sha512sums="f6e5336ea32aa87666d740fe594eecd6710757d32d11e0160b30b0d56ba9c742d04939dc17df0598266d8622ebaf44cac96c2ec7b01428405150a41e2234aef6 lftp-4.4.16.tar.xz
3f7e7958787c323b148415ba42d8748d27a515da2dbc62c087e778190806cf6f683900966c359829d3ba1a4d8d06a874d35c41316c89059b1c85806328f422cc 0001-run-the-gunlib-checks-with-same-compiler-as-when-bui.patch
ba7ae5f68382a8bb24ed4a2313a224cf5ac5e105bc15ab22c3f43578cb4cb6cc436d8f7327e5da2b9f3c28ab5532123f7db6ea12d9ba3cba12b8f9cf71bb3632 stdc-limit-macros.patch"
|