summaryrefslogtreecommitdiff
path: root/user/gnu-netcat/APKBUILD
blob: 6123aee0e00f4e850cfb3ad2ad4fc66966132cfc (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
# Contributor: Nathan <ndowens@artixlinux.org>
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=gnu-netcat
pkgver=0.7.1
pkgrel=0
pkgdesc="GNU rewrite of netcat"
url="http://netcat.sourceforge.net" # No HTTPS
arch="all"
license="GPL-2.0+"
depends=""
makedepends="texinfo"
subpackages="$pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/sourceforge/netcat/netcat-$pkgver.tar.bz2"
builddir="$srcdir/netcat-$pkgver"

prepare() {
	update_config_guess
	default_prepare
}

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="283c02f849c3bb62615a5ccb7796192804dafcecb34f3c6b553cbc12c715654963b81e253762923c6069be9768b93dde576a392b89b167912c323354f1376e83  netcat-0.7.1.tar.bz2"