mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
25 lines
1,007 B
Bash
25 lines
1,007 B
Bash
# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
|
|
# Previous Contributor: Baptiste Daroussin <baptiste.daroussin@gmail.com>
|
|
pkgname=tnftp
|
|
pkgver=20070806
|
|
pkgrel=3
|
|
pkgdesc="NetBSD FTP client with several advanced features"
|
|
arch=('i686' 'x86_64')
|
|
url="ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/"
|
|
license=('BSD')
|
|
conflicts=('netkit-ftp')
|
|
source=(ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/$pkgname-$pkgver.tar.gz)
|
|
md5sums=('bc78ddc857156f8bc4222d15cce6f76d')
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
sed -i 's/ARG_MAX/sysconf(_SC_ARG_MAX)/' libnetbsd/glob.c
|
|
./configure --prefix=/usr\
|
|
--enable-editcomplete || return 1
|
|
sed -i 's|getline|my_getline|' src/*
|
|
export CLAGS="$CFLAGS -DUSE_POSIX"
|
|
make || return 1
|
|
install -Dm755 "$srcdir/$pkgname-$pkgver/src/ftp" "$pkgdir/usr/bin/ftp"
|
|
install -Dm644 "$srcdir/$pkgname-$pkgver/src/ftp.1" "$pkgdir/usr/man/man1/ftp.1"
|
|
install -Dm755 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
|
|
mv ${pkgdir}/usr/man ${pkgdir}/usr/share/man
|
|
}
|