From 1c4973ed2009a75a2c5b012f436eaa867878f373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 27 Oct 2022 18:59:03 +0700 Subject: [PATCH] openbsd-netcat: use create_wrksrc --- srcpkgs/openbsd-netcat/template | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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