# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libid3tag
version=0.15.1b
build=1sml
homepage="https://sourceforge.net/projects/mad/files/libid3tag/"
desc="library for reading ID3 tags"
requires="zlib"

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

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

  applypatch $srcdir/CVE-2008-2109.patch
}

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

  make
  make install DESTDIR=$pkg

  cp COPY* $pkgdocs/

  mkfinalpkg
}

sha512sums="
ee5b64dc49c1344882058fc19292daebffd77362c9f76556278b81ae83303f7a35cdde5e2ecf5726b075fb9d7e93aaa5c9a26cd69bd2b3abc6176fd4c780eca5  libid3tag-0.15.1b.tar.lz
fc79d44ca9d1435ab5b11d4da6b46d3684827a1384a0156cd88242225f98f3a0668c0d6e6a88159f0c4985fcbdc636777c2f100d7f371eef258a6050d6fde567  CVE-2008-2109.patch
"
