# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=cpio pkgver=2.14 pkgrel=0 pkgdesc="tool to copy files into or out of a cpio or tar archive" url="https://www.gnu.org/software/cpio" arch="all" license="GPL-3.0-or-later" checkdepends="autoconf" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.bz2::https://ftp.gnu.org/gnu/cpio/cpio-$pkgver.tar.bz2" # secfixes: # 2.13-r2: # - CVE-2021-38185 # 2.13-r0: # - CVE-2015-1197 # - CVE-2019-14866 # 2.12-r3: # - CVE-2016-2037 build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-largefile \ --disable-mt \ --disable-rpath \ --disable-nls make } check() { make check } package() { make DESTDIR="$pkgdir" install rm -f "$pkgdir"/usr/lib/charset.alias rm -f "$pkgdir"/usr/libexec/rmt # part of the tar pkg rm "$pkgdir"/usr/share/man/*/rmt.* } sha512sums=" 2dc93a81e31b6fb7ff9976243d22ca7a84bb396c7ad09e0abfb5d5efae1164ebb319fb89be45045797f8c604b3e3d2ea0746e3cfe559aa86282ea4ec9a17da28 cpio-2.14.tar.bz2 "