1 # Maintainer: judd <jvinet@zeroflux.org>
5 pkgdesc="A tool to copy files into or out of a cpio or tar archive"
8 url="https://www.gnu.org/software/cpio"
10 source=(https://ftp.gnu.org/gnu/cpio/cpio-${pkgver}.tar.gz{,.sig})
11 sha256sums=('145a340fd9d55f0b84779a44a12d5f79d77c99663967f8cfa168d7905ca52454'
13 validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff <gray@gnu.org>
16 cd ${pkgname}-${pkgver}
17 CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
18 ./configure --prefix=/usr --mandir=/usr/share/man
23 cd ${pkgname}-${pkgver}
28 cd ${pkgname}-${pkgver}
29 make DESTDIR="${pkgdir}" install
30 rm -f "${pkgdir}/usr/bin/mt" "${pkgdir}/pkg/usr/share/man/man1/mt.1"
31 rm -rf "${pkgdir}/usr/libexec"
32 rm -f "${pkgdir}/usr/share/man/man8/rmt.8"
34 rm "$pkgdir/usr/share/info/dir"