diff options
Diffstat (limited to 'extra/ncftp')
-rw-r--r-- | extra/ncftp/PKGBUILD | 23 | ||||
-rw-r--r-- | extra/ncftp/fix-build.patch | 10 |
2 files changed, 25 insertions, 8 deletions
diff --git a/extra/ncftp/PKGBUILD b/extra/ncftp/PKGBUILD index 2b1189ee0..3ba6a9d62 100644 --- a/extra/ncftp/PKGBUILD +++ b/extra/ncftp/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 176940 2013-02-02 19:50:19Z eric $ +# $Id: PKGBUILD 206931 2014-03-06 11:24:46Z andrea $ # Maintainer: # Contributor: Andrea Scarpino <andrea@archlinux.org> # Contributor: Paul Mattal <paul@archlinux.org> @@ -6,25 +6,32 @@ pkgname=ncftp pkgver=3.2.5 -pkgrel=2 +pkgrel=3 pkgdesc="A set of free application programs implementing FTP" url="http://www.ncftp.com/" arch=('i686' 'x86_64') license=('custom') depends=('ncurses') -source=("ftp://ftp.ncftp.com/ncftp/$pkgname-$pkgver-src.tar.bz2") -md5sums=('b05c7a6d5269c04891f02f43d4312b30') +makedepends=('inetutils') +source=("ftp://ftp.ncftp.com/ncftp/$pkgname-$pkgver-src.tar.bz2" + 'fix-build.patch') +md5sums=('b05c7a6d5269c04891f02f43d4312b30' + 'f85fd4cc66b66952d67f864137f44029') -build() { - cd "${srcdir}/${pkgname}-${pkgver}" +prepare() { + cd ${pkgname}-${pkgver} + patch -p1 -i "${srcdir}"/fix-build.patch +} - ./configure --prefix=/usr \ +build() { + cd ${pkgname}-${pkgver} + CPP=/usr/bin/cpp ./configure --prefix=/usr \ --sysconfdir=/etc make } package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd ${pkgname}-${pkgver} install -d "${pkgdir}/usr/share" make prefix="${pkgdir}/usr" mandir="${pkgdir}/usr/share/man" install diff --git a/extra/ncftp/fix-build.patch b/extra/ncftp/fix-build.patch new file mode 100644 index 000000000..4524d709b --- /dev/null +++ b/extra/ncftp/fix-build.patch @@ -0,0 +1,10 @@ +--- ncftp-3.2.5/ncftp/main.c~ 2014-03-06 11:20:05.006777392 +0000 ++++ ncftp-3.2.5/ncftp/main.c 2014-03-06 11:20:25.739974714 +0000 +@@ -21,6 +21,7 @@ + #include "log.h" + #include "spool.h" + #include "util.h" ++#include "locale.h" + + int gStartupUrlParameterGiven = 0; + int gIsTTY, gIsTTYr; |