app=wxwidgets
version=3.0.5.1
build=1sml
homepage="https://wxwidgets.org/"
download="https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.5.1/wxWidgets-3.0.5.1.tar.bz2"
desc="C++ library for writing for writing apps with single codebase"
requires="gtk3 sdl2 libnotify"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --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="
0a789fc5e71d414e43f75b5c16076fe8b1bcd7671be0770e4269dcef66d830c1bc74e183f49db270b928862f13472666c283fe2aa98b9006681722e06100725d  wxWidgets-3.0.5.1.tar.bz2
"