summaryrefslogtreecommitdiff
path: root/user/ncftp/APKBUILD
blob: d23b85b3773939d9f258b6f5ffca3bbde3c0bd43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=ncftp
pkgver=3.2.7
pkgrel=0
pkgdesc="A set of free application programs implementing FTP"
url="https://www.ncftp.com/"
arch="all"
options="!check"  # No test suite.
license="ClArtistic"
depends=""
makedepends="ncurses-dev"
subpackages="$pkgname-doc $pkgname-bookmarks"
source="https://www.ncftp.com/downloads/ncftp/$pkgname-$pkgver-src.tar.xz"

build() {
	LIBS="-ltinfo" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man

	make -C libncftp shared
	make
}

package() {
	make PREFIX="${pkgdir}"/usr -C libncftp soinstall
	make DESTDIR="$pkgdir" install
	install -D doc/LICENSE.txt \
		"$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}

bookmarks() {
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/ncftpbookmarks \
		"$subpkgdir"/usr/bin/
}

sha512sums="b755385a57ac2487625c15985f091d9e1b71073b2593faffe1f2bbba34e691cfff9ffd8448b048f223ea08428e890f30c49a903e4f938393e3c0e4ae03ddab37  ncftp-3.2.7-src.tar.xz"