APP=fuse
VERSION=2.9.5
BUILD=1sml
HOMEPAGE='https://github.com/libfuse/libfuse'
DOWNLOAD='https://github.com/libfuse/libfuse/releases/download/fuse-2.9.5/fuse-2.9.5.tar.xz'
DESC="Interface to export virtual filesystem in userspace"
REQUIRES="musl"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --sbindir=/bin \
    --enable-lib \
    --enable-shared \
    --disable-static 

  make
  make install DESTDIR=$PKG

  mv $PKG/sbin/* $PKG/bin/ ; rmdir $PKG/sbin

  mkdir -p $PKG/etc/rc.d
  mv $PKG/etc/init.d/fuse $PKG/etc/rc.d/rc.fuse.new
  rm -rf $PKG/etc/init.d

  cp COPYING* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
8d24254a26314a3c2f84108cd3aadc357b9ac943edd279f6fcd86c1821238ac01817880cfc994172b50a07bf74ead1e3bb44faf17eee81cca3baf3a6a960e823  fuse-2.9.5.tar.lz
"
