PortSystem 1.0

name                cpio
version             2.15
revision            0
checksums           rmd160  48b42adcbcc368e32f5caa6d75e37a29e9726544 \
                    sha256  937610b97c329a1ec9268553fb780037bcfff0dcffe9725ebc4fd9c1aa9075db \
                    size    1651320 \

categories          archivers
maintainers         {mails.ucas.ac.cn:chenguokai17 @chenguokai} openmaintainer
license             GPL-3
description         copies files into or out of a cpio or tar archives
long_description    GNU cpio copies files into or out of a cpio or tar \
                    archive. The archive can be another file on the disk, a \
                    magnetic tape, or a pipe.

homepage            https://www.gnu.org/software/cpio/cpio.html
master_sites        gnu
use_bzip2           yes

depends_lib         port:gettext port:libiconv


configure.args      --program-prefix=gnu \
                    --mandir=${prefix}/share/man \
                    --infodir=${prefix}/share/info \
                    --libexecdir=${prefix}/lib/${name}

test.run            yes
test.target         check

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
    ln -sf ${prefix}/bin/gnucpio ${destroot}${prefix}/libexec/gnubin/cpio
}

livecheck.type      regex
livecheck.url       https://ftp.gnu.org/gnu/cpio/?C=M&O=D
livecheck.regex     cpio-(\[0-9\]+\\.\[0-9\]+)

