diff --git a/srcpkgs/openbsd-netcat/template b/srcpkgs/openbsd-netcat/template index 9c458b8e23c..4b09dfe9a28 100644 --- a/srcpkgs/openbsd-netcat/template +++ b/srcpkgs/openbsd-netcat/template @@ -2,7 +2,7 @@ pkgname=openbsd-netcat version=1.219 revision=1 -wrksrc="netcat-openbsd-${version%p*}" +create_wrksrc=yes hostmakedepends="pkg-config" makedepends="libbsd-devel" short_desc="TCP/IP swiss army knife (OpenBSD/Debian variant)" @@ -19,8 +19,12 @@ alternatives=" nc:nc:/usr/bin/openbsd-nc nc:nc.1:/usr/share/man/man1/openbsd-nc.1" +post_extract() { + mv netcat-openbsd-${version}/* . + ( cd debian/patches; xargs cat