APP=libtool
VERSION=2.4.6
BUILD=1sml
HOMEPAGE='https://www.gnu.org/software/libtool'
DOWNLOAD='https://mirror.squ.edu.om/gnu/libtool/libtool-2.4.6.tar.xz'
DESC="Generic library support script"
REQUIRES="musl m4"

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

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

  ./configure \
    --prefix="" \
    --disable-static 

  make
  make install DESTDIR=$PKG

  cp README $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
703840ef4b5407ad0307a50dcba35703388d821a416ae5492e6f772494b073da3f4173902b2372dd4fae2591b7d5200ad49cd339acff1a6d7d72ac0b6751ebf5  libtool-2.4.6.tar.lz
"
