* update cpio to 2.15-2

This commit is contained in:
Alexander Baldeck 2024-10-08 22:43:34 +02:00
parent 37e9233f33
commit 15a59bfa1f
3 changed files with 40 additions and 13 deletions

20
cpio/.SRCINFO Normal file
View File

@ -0,0 +1,20 @@
pkgbase = cpio
pkgdesc = A tool to copy files into or out of a cpio or tar archive
pkgver = 2.15
pkgrel = 2
url = https://www.gnu.org/software/cpio
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = GPL-3.0-or-later
makedepends = git
makedepends = rsync
makedepends = wget
depends = glibc
source = git+https://git.savannah.gnu.org/git/cpio.git?signed#tag=v2.15
validpgpkeys = 325F650C4C2B6AD58807327A3602B07F55D0C732
b2sums = SKIP
pkgname = cpio

4
cpio/.nvchecker.toml Normal file
View File

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

View File

@ -1,36 +1,39 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# 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 powerpc64le powerpc64 powerpc riscv64)
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
}