# Maintainer: PktSurf <smlinux@pktsurf.in>
app=wxwidgets
version=3.0.5.1
build=1sml
homepage="https://wxwidgets.org/"
download="https://github.com/wxWidgets/wxWidgets/releases/download/v$version/wxWidgets-$version.tar.bz2"
desc="C++ library for writing for writing apps with single codebase"
requires="gtk3 sdl2 libnotify"

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

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

build() {
  ./configure \
    --prefix="" \
    --with-gtk=3 \
    --with-opengl \
    --with-sdl \
    --with-libnotify \
    --enable-mediactrl \
    --enable-unicode \
    --with-libmspack

  make 
  make install DESTDIR=$pkg

  install -Dm 644 docs/licence.txt $pkgdocs/LICENSE

  mkfinalpkg
}

sha512sums="
53fb86b5a747db36947ae9494d0172ab7ce57bfca6bdcd416c78aa96a05045c633aeacfd518de54e9519fab3da937afd50cdd83554c588c0755b35e3a99389b9  wxWidgets-3.0.5.1.tar.lz
"
