pkgname: cpio pkgver: '2.15' pkgrel: '3' pkgdesc: 'Copies files into or out of a cpio or tar archive.' url: 'https://www.gnu.org/software/cpio/' arch: x86_64 depends: [] makedepends: [] source: - 'https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.bz2' sha256sums: - SKIP build: | cd ${pkgname}-${pkgver} sed -e "/^extern int (\*xstat)/s/()/(const char * restrict, struct stat * restrict)/" \ -i src/extern.h sed -e "/^int (\*xstat)/s/()/(const char * restrict, struct stat * restrict)/" \ -i src/global.c ./configure \ --prefix=/usr \ --libexecdir=/tmp \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-mt --with-rmt=/usr/libexec/rmt make make DESTDIR=${PKGDIR} install rm -rf ${PKGDIR}/tmp package: | true