git » cpio.git » commit 3d46a9a

use configure option to not build rmt instead

author Daniel Tobias
2025-07-01 14:34:22 UTC
committer Daniel Tobias
2025-07-01 14:34:22 UTC
parent 233d9caf22ee4dc117293e52586b83a30aa433f6

use configure option to not build rmt instead

.SRCINFO +1 -0
PKGBUILD +2 -3

diff --git a/.SRCINFO b/.SRCINFO
index 123af4e..38da8a6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -9,6 +9,7 @@ pkgbase = cpio
 	makedepends = rsync
 	makedepends = wget
 	depends = glibc
+	options = !emptydirs
 	source = git+https://git.savannah.gnu.org/git/cpio.git?signed#tag=v2.15
 	source = git+https://git.savannah.gnu.org/git/gnulib.git
 	source = git+https://git.savannah.gnu.org/git/paxutils.git
diff --git a/PKGBUILD b/PKGBUILD
index fce34be..933d41d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,6 +9,7 @@ license=('GPL-3.0-or-later')
 url="https://www.gnu.org/software/cpio"
 depends=('glibc')
 makedepends=('git' 'rsync' 'wget')
+options=('!emptydirs')
 source=("git+https://git.savannah.gnu.org/git/cpio.git?signed#tag=v${pkgver}"
         "git+https://git.savannah.gnu.org/git/gnulib.git"
         "git+https://git.savannah.gnu.org/git/paxutils.git")
@@ -33,7 +34,7 @@ prepare() {
 
 build() {
   cd "${pkgname}"
-  ./configure --prefix=/usr --mandir=/usr/share/man
+  ./configure --prefix=/usr --mandir=/usr/share/man --with-rmt=/dev/null
   make
 }
 
@@ -45,6 +46,4 @@ check() {
 package() {
   cd "${pkgname}"
   make DESTDIR="${pkgdir}" install
-  rm -r "${pkgdir}"/usr/libexec
-  rm -r "${pkgdir}"/usr/share/man/man8
 }