git » cpio.git » commit b2bb40d

upgpkg: 2.15-2: switch to git building, added nvchecker, updated rm calls

author Tobias Powalowski
2024-08-27 19:48:43 UTC
committer Tobias Powalowski
2024-08-27 19:48:43 UTC
parent 6dd7976737e892325dc2860ddbb71483a0118a5b

upgpkg: 2.15-2: switch to git building, added nvchecker, updated rm calls

.SRCINFO +6 -5
.nvchecker.toml +4 -0
PKGBUILD +16 -13

diff --git a/.SRCINFO b/.SRCINFO
index 6062900..1ca69a0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,16 @@
 pkgbase = cpio
 	pkgdesc = A tool to copy files into or out of a cpio or tar archive
 	pkgver = 2.15
-	pkgrel = 1
+	pkgrel = 2
 	url = https://www.gnu.org/software/cpio
 	arch = x86_64
 	license = GPL-3.0-or-later
+	makedepends = git
+	makedepends = rsync
+	makedepends = wget
 	depends = glibc
-	source = https://ftp.gnu.org/gnu/cpio/cpio-2.15.tar.gz
-	source = https://ftp.gnu.org/gnu/cpio/cpio-2.15.tar.gz.sig
+	source = git+https://git.savannah.gnu.org/git/cpio.git?signed#tag=v2.15
 	validpgpkeys = 325F650C4C2B6AD58807327A3602B07F55D0C732
-	sha256sums = efa50ef983137eefc0a02fdb51509d624b5e3295c980aa127ceee4183455499e
-	sha256sums = SKIP
+	b2sums = SKIP
 
 pkgname = cpio
diff --git a/.nvchecker.toml b/.nvchecker.toml
new file mode 100644
index 0000000..e354ad3
--- /dev/null
+++ b/.nvchecker.toml
@@ -0,0 +1,4 @@
+[coreutils]
+source = "git"
+git = "https://git.savannah.gnu.org/git/cpio.git"
+prefix = "v"
diff --git a/PKGBUILD b/PKGBUILD
index fecd5d7..9ff5e6f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,38 @@
-# Maintainer: judd <jvinet@zeroflux.org>
+# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
 pkgname=cpio
 pkgver=2.15
-pkgrel=1
+pkgrel=2
 pkgdesc="A tool to copy files into or out of a cpio or tar archive"
 arch=(x86_64)
 license=('GPL-3.0-or-later')
 url="https://www.gnu.org/software/cpio"
 depends=('glibc')
-source=(https://ftp.gnu.org/gnu/cpio/cpio-${pkgver}.tar.gz{,.sig})
-sha256sums=('efa50ef983137eefc0a02fdb51509d624b5e3295c980aa127ceee4183455499e'
-            'SKIP')
+makedepends=('git' 'rsync' 'wget')
+source=(git+https://git.savannah.gnu.org/git/cpio.git?signed#tag=v${pkgver})
+b2sums=('SKIP')
 validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff <gray@gnu.org>
 
+prepare() {
+  cd "${pkgname}"
+  ./bootstrap
+}
+
 build() {
-  cd ${pkgname}-${pkgver}
+  cd "${pkgname}"
   CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
   ./configure --prefix=/usr --mandir=/usr/share/man
   make
 }
 
 check() {
-  cd ${pkgname}-${pkgver}
+  cd "${pkgname}"
   make check
 }
 
 package() {
-  cd ${pkgname}-${pkgver}
+  cd "${pkgname}"
   make DESTDIR="${pkgdir}" install
-  rm -f "${pkgdir}/usr/bin/mt" "${pkgdir}/pkg/usr/share/man/man1/mt.1"
-  rm -rf "${pkgdir}/usr/libexec"
-  rm -f "${pkgdir}/usr/share/man/man8/rmt.8"
-  # remove infodir
-  rm "$pkgdir/usr/share/info/dir"
+  rm -r "${pkgdir}"/usr/libexec
+  rm -r "${pkgdir}"/usr/share/man/man8
 }