archrelease: copy trunk to extra-x86_64
[arch-packages.git] / ncftp / trunk / PKGBUILD
blob88246acac66c60f3daf4616897336b4f4e80c2c4
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>
6 pkgname=ncftp
7 pkgver=3.2.6
8 pkgrel=4
9 pkgdesc="A set of free application programs implementing FTP"
10 url="https://www.ncftp.com/"
11 arch=('x86_64')
12 license=('custom')
13 depends=('ncurses')
14 source=("ftp://ftp.ncftp.com/ncftp/$pkgname-$pkgver-src.tar.xz"
15         ncftp-reproducible.patch)
16 md5sums=('42d0f896d69a4d603ec097546444245f'
17          'bf51aa93c785d366e19ccce78820da5a')
19 prepare() {
20   cd "${pkgname}-${pkgver}"
21   # Make ncftp reproducible by not compiling in the kernel version
22   patch -Np1 -i "${srcdir}/ncftp-reproducible.patch"
25 build() {
26   cd "${pkgname}-${pkgver}"
28   CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
30   # FS#39211
31   unset CPPFLAGS
33   CPP=/usr/bin/cpp ./configure --prefix=/usr --sysconfdir=/etc
34   make
37 package() {
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"