# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libexif
version=0.6.22
mversion="(echo $version | sed 's@_@.)"
build=2sml
homepage="https://libexif.github.io/"
download="https://github.com/libexif/libexif/releases/download/libexif-$mversion-release/libexif-$version.tar.xz"
desc="Exchangeable Image File Format 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

  mkfinalpkg
}

sha512sums="
bb5ad5e68bc32142c61c46ddf72f8b3734b5ec2fcd9c5682eafe44ddf2a84f76c646b2d497ccfe590c61f13f315fc7c44623685c316d9ff77a289e877978318a  libexif-0.6.22.tar.lz
"
