APP=initfs
VERSION=0.1
BUILD=1sml
HOMEPAGE='http://git.pktsurf.in/smlinux/tree/base/initfs'
DESC="initfs - initial file system hierarchy creator"
REQUIRES="musl"
ARCH=noarch

build() {
  mkandenterbuilddir

  cd $PKG
  tar xf $SRCDIR/$APP.tar.lz

  mv initfs/* . 
  rmdir initfs

  mkdir -p install
  chmod 1777 tmp
  chmod 0700 root

  cp $SRCDIR/doinst.sh install/

  install -Dm 755 $SRCDIR/$APP.SMBuild $PKG/doc/$APP-$VERSION/$APP.SMBuild
  /bin/makepkg -l n -c n $PKGDEST/$APP-$VERSION-$ARCH-$BUILD.$PKGEXT
  [ "$?" = "0" ] && SM_PKGSTATUS=0
}

SHA512SUMS="
85da0195b5e58c2b01f6ab91ed7a15ebff783325b08c5ed10722e6576974c1cedf55767eb30ccf58f41fc6c88171810ee63a0d7c7d09eb925c0572802d7754de  initfs.tar.lz
"
