1 # Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Paul Mattal <paul@archlinux.org>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
9 pkgdesc="A set of free application programs implementing FTP"
10 url="https://www.ncftp.com/"
14 source=("ftp://ftp.ncftp.com/ncftp/$pkgname-$pkgver-src.tar.xz"
15 ncftp-reproducible.patch)
16 sha256sums=('5f200687c05d0807690d9fb770327b226f02dd86155b49e750853fce4e31098d'
17 'd5df31ab43f1573a86a842fdc69d7ae84f20afd22c74336264cc4e1e39e2f44d')
20 cd "${pkgname}-${pkgver}"
21 # Make ncftp reproducible by not compiling in the kernel version
22 patch -Np1 -i "${srcdir}/ncftp-reproducible.patch"
26 cd "${pkgname}-${pkgver}"
28 CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
33 CPP=/usr/bin/cpp ./configure --prefix=/usr --sysconfdir=/etc
38 cd "${pkgname}-${pkgver}"
40 install -d "${pkgdir}/usr/share"
41 make prefix="${pkgdir}/usr" mandir="${pkgdir}/usr/share/man" install
42 install -Dm644 doc/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"