Mail archive
alpine-aports

[alpine-aports] [PATCH] main/lftp: upgrade to 4.6.5.

From: Valery Kartel <valery.kartel_at_gmail.com>
Date: Tue, 29 Dec 2015 13:11:22 +0200

Rebuild without ncurses, without gnutls and with openssl.
Because openssl is present in the basic installation.
---
 main/lftp/APKBUILD | 38 +++++++++++++-------------------------
 1 file changed, 13 insertions(+), 25 deletions(-)
diff --git a/main/lftp/APKBUILD b/main/lftp/APKBUILD
index 2d093c4..854eb74 100644
--- a/main/lftp/APKBUILD
+++ b/main/lftp/APKBUILD
_at_@ -1,29 +1,19 @@
+# Contributor: Valery Kartel <valery.kartel_at_gmail.com>
 # Contributor: Carlo Landmeter <clandmeter_at_gmail.com>
 # Maintainer: Carlo Landmeter <clandmeter_at_gmail.com>
 pkgname=lftp
-pkgver=4.6.4
-pkgrel=3
+pkgver=4.6.5
+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"
+makedepends="openssl-dev readline-dev"
 subpackages="$pkgname-doc"
-source="http://lftp.yar.ru/ftp/lftp-$pkgver.tar.xz
-	"
+source="http://lftp.yar.ru/ftp/$pkgname-$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
-}
+_builddir="$srcdir"/$pkgname-$pkgver
 
 build() {
 	cd "$_builddir"
_at_@ -32,15 +22,11 @@ build() {
 		--build=$CBUILD \
 		--host=$CHOST \
 		--prefix=/usr \
-		--sysconfdir=/etc/lftp \
-		--mandir=/usr/share/man \
-		--infodir=/usr/share/info \
-		--with-gnutls \
+		--sysconfdir=/etc \
+		--with-openssl \
 		--with-modules \
 		--disable-nls \
 		--disable-static \
-		--with-gnutls \
-		--without-openssl \
 		|| return 1
 	make || return 1
 }
_at_@ -49,8 +35,10 @@ 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="84987c1095df84bfb5ac9c95c6aba6be  lftp-4.6.4.tar.xz"
-sha256sums="1e7cb674c83ace48172263f86847ed04bb6ab2f24116b11a8505f70a15e8805c  lftp-4.6.4.tar.xz"
-sha512sums="998050c0e69fc590233df8b400664c1165dfa80d7b3844aa307be33e004c3dd3e049df8f288ad7079257a31dc4adcdb07a57b8f28cd0adf7e3cf94c41d38b9dc  lftp-4.6.4.tar.xz"
+md5sums="39507c331a987e0534acf75a4c3824a0  lftp-4.6.5.tar.xz"
+sha256sums="1fd0920a1791ce0e9e39ffce77ae6619e5dc665f16e9380bafbfc69411eeb71e  lftp-4.6.5.tar.xz"
+sha512sums="a22faa3a6901160460f1103c19c5276f603c154908ec2e34804a6eb48452b59ba495993e6824f57d114285ddc80a64dccd0069465cc0593f34f435ac181250c0  lftp-4.6.5.tar.xz"
-- 
2.6.4
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Dec 29 2015 - 13:11:22 GMT