APP=cpio
VERSION=2.13
BUILD=1sml
HOMEPAGE='https://www.gnu.org/software/cpio/'
DOWNLOAD='https://ftp.gnu.org/gnu/cpio/cpio-2.13.tar.gz'
DESC="Backup and archiving utility"
REQUIRES="musl"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION 
  fixbuilddirpermissions

  CFLAGS="$CFLAGS -fcommon" \
  ./configure \
    --prefix="" \
    --sysconfdir=/etc 

  make
  make install DESTDIR=$PKG 

  cp -a COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
078d5d0ab398adb76b0a4e83a07821edf2cca5e84308ef547fd530c6c6c3d4b8577833581614aedfd23ca697cab058672dba7886642d8a3eb9ae769c10d672e8  cpio-2.13.tar.lz
"
