# Maintainer=alive4ever pkgname=libressl-netcat pkgver=2.6.4 pkgrel=1 arch=('x86_64' 'i686') pkgdesc="Low level UDP/TCP connection tool with support for TLS protocol" url=https://www.libressl.org license=('isc' 'custom:Openssl') depends=('glibc' 'ca-certificates') provides=('netcat') conflicts=('openbsd-netcat' 'gnu-netcat') source=("https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${pkgver}.tar.gz" "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${pkgver}.tar.gz.asc") sha256sums=('638a20c2f9e99ee283a841cd787ab4d846d1880e180c4e96904fc327d419d11f' 'SKIP') ## To verify the package signature, import the public key manually before ## building the package. # curl -LO https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl.asc # gpg --import ./libressl.asc ## Note that building package should not be run as root. Run the build using ## standard user, either locally or inside container (systemd-nspawn, docker, or ## lxc) validpgpkeys=('A1EB079B8D3EB92B4EBD3139663AF51BD5E4D8D5') # Brent Cook build() { cd $srcdir/libressl-${pkgver}/ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-nc --disable-static \ --disable-shared --with-pic=yes make } check() { cd $srcdir/libressl-${pkgver}/ make -k check } package() { cd $srcdir/libressl-${pkgver} install -Dm 755 ./apps/nc/nc $pkgdir/usr/bin/nc ln -s nc $pkgdir/usr/bin/netcat install -Dm 644 ./apps/nc/nc.1 $pkgdir/usr/share/man/man1/nc.1 install -Dm 644 ./COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE }