[build] type = "autotools" [build.flags] configure = [ "--mandir=/usr/share/man", "--with-rmt=/dev/null", ] [dependencies] runtime = ["glibc"] [package] description = "tool to copy files into or out of a cpio or tar archive" homepage = "https://www.gnu.org/software/cpio/" license = "GPL-3.0-or-later" name = "cpio" version = "2.15" [[source]] extract_dir = "$name-$version" post_extract = [ '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', ] sha256 = "937610b97c329a1ec9268553fb780037bcfff0dcffe9725ebc4fd9c1aa9075db" url = "https://mirrors.kernel.org/gnu/cpio/cpio-$version.tar.bz2"