# Maintainer: PktSurf <smlinux@pktsurf.in>
app=mtdev
version=1.1.6
build=1sml
homepage="https://bitmath.org/code/mtdev/"
download="https://bitmath.org/code/mtdev/mtdev-$version.tar.gz"
desc="Library which transforms all variants of kernel MT events to the slotted type B protocol"
requires="musl"

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
085e503d06a4061f3f1a7f65ff15aa47750e04ec4cc76b9142bbde57d45ba4bafb02b14f4cd0583991ee498758ba12cdb706c868bfc0ad41d16f8ae9ad986bcc  mtdev-1.1.6.tar.lz
"
