Tobias Powalowski pushed to branch main at Arch Linux / Packaging / Packages / 
cpio


Commits:
b2bb40d1 by Tobias Powalowski at 2024-08-27T21:48:43+02:00
upgpkg: 2.15-2: switch to git building, added nvchecker, updated rm calls

- - - - -


3 changed files:

- .SRCINFO
- + .nvchecker.toml
- PKGBUILD


Changes:

=====================================
.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


=====================================
.nvchecker.toml
=====================================
@@ -0,0 +1,4 @@
+[coreutils]
+source = "git"
+git = "https://git.savannah.gnu.org/git/cpio.git";
+prefix = "v"


=====================================
PKGBUILD
=====================================
@@ -1,35 +1,38 @@
-# Maintainer: judd <[email protected]>
+# Maintainer: Tobias Powalowski <[email protected]>
+# Contributor: judd <[email protected]>
 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 
<[email protected]>
 
+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
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/cpio/-/commit/b2bb40d144021f682983055eb7bb29d878ea8d76

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/cpio/-/commit/b2bb40d144021f682983055eb7bb29d878ea8d76
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to