git » cpio.git » commit 6a1567e

use git submodules for gnulib and paxutils

author Daniel Tobias
2025-07-01 14:06:37 UTC
committer Daniel Tobias
2025-07-01 14:06:37 UTC
parent 7889897e70c4dfef95d4f38c06495bbcb039dac7

use git submodules for gnulib and paxutils

.SRCINFO +4 -0
PKGBUILD +12 -2

diff --git a/.SRCINFO b/.SRCINFO
index 1ca69a0..123af4e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -10,7 +10,11 @@ pkgbase = cpio
 	makedepends = wget
 	depends = glibc
 	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
 	validpgpkeys = 325F650C4C2B6AD58807327A3602B07F55D0C732
+	b2sums = a440520f0cb0d77cff6fc8a44b13f32454a1052ce1d79a4733ebeaafcc0af3404a906edf0aecbc86c69b95b4b55005f63c20746f688672223bd751054f378a99
+	b2sums = SKIP
 	b2sums = SKIP
 
 pkgname = cpio
diff --git a/PKGBUILD b/PKGBUILD
index 9ff5e6f..e2ee034 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,12 +9,22 @@ license=('GPL-3.0-or-later')
 url="https://www.gnu.org/software/cpio"
 depends=('glibc')
 makedepends=('git' 'rsync' 'wget')
-source=(git+https://git.savannah.gnu.org/git/cpio.git?signed#tag=v${pkgver})
-b2sums=('SKIP')
+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")
 validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff <gray@gnu.org>
+b2sums=('a440520f0cb0d77cff6fc8a44b13f32454a1052ce1d79a4733ebeaafcc0af3404a906edf0aecbc86c69b95b4b55005f63c20746f688672223bd751054f378a99'
+        'SKIP'
+        'SKIP')
 
 prepare() {
   cd "${pkgname}"
+
+  git submodule init
+  git config submodule.gnulib.url "${srcdir}/gnulib"
+  git config submodule.paxutils.url "${srcdir}/paxutils"
+  git -c protocol.file.allow=always submodule update
+
   ./bootstrap
 }