# Maintainer: Carlo Landmeter pkgname=ncftp pkgver=3.2.4 pkgrel=1 pkgdesc="A set of free application programs implementing FTP" url="http://www.ncftp.com/" arch="all" license="custom" depends= makedepends="ncurses-dev" install="$pkgname.post-install" source="ftp://ftp.$pkgname.com/$pkgname/$pkgname-$pkgver-src.tar.bz2" subpackages="$pkgname-doc $pkgname-bookmarks" _builddir="$srcdir/$pkgname-$pkgver" prepare() { mkdir -p "$pkgdir"/usr/share || return 1 } build () { cd "$_builddir" || return 1 ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man || return 1 cd "$_builddir"/libncftp make shared || return 1 cd "$_builddir" || return 1 make || return 1 } package() { cd "$_builddir"/libncftp make PREFIX="${pkgdir}"/usr soinstall || return 1 cd "$_builddir" || return 1 make DESTDIR="$pkgdir" install || return 1 install -D doc/LICENSE.txt "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE || return 1 } bookmarks () { install="" mkdir -p "$subpkgdir"/usr/bin || return 1 mv "$pkgdir"/usr/bin/ncftpbookmarks "$subpkgdir"/usr/bin/ || return 1 } md5sums="216d6befdd7381b11ffdc8b6e0c1bd12 ncftp-3.2.4-src.tar.bz2"