# Maintainer: PktSurf <smlinux@pktsurf.in>
app=fribidi
version=1.0.9
build=1sml
homepage="https://github.com/fribidi/fribidi"
download="https://github.com/fribidi/fribidi/releases/download/v$version/fribidi-$version.tar.xz"
desc="Unicode BiDirectional algorithm library"
requires="musl"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix="" \
    --disable-static 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
88032eca39712493ffa6f2114bd75e7203b95fad1db1e619aaaf919df84a63869247a7fa56aa044c9475ae8027feff975ad35d0e6b5c3f1e85d5d8d4dd60c691  fribidi-1.0.9.tar.lz
"
