APP=swig
VERSION=4.0.2
BUILD=1sml
HOMEPAGE="http://www.swig.org/"
DOWNLOAD="http://prdownloads.sourceforge.net/swig/swig-4.0.2.tar.gz"
DESC="Simplified Wrapper and Interface Generator"
REQUIRES="gcc-libs pcre"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc 

  make
  make install DESTDIR=$PKG 

  cp COPYRIGHT LICENSE* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
afd6792d6b10b7bae6559b9070563aad957b5780017d7bfae49b5b0dd2c6f9981995bdc409dcd8ae6d245615a0af9abc286feba47af36c6d77bbc586bcc93c3a  swig-4.0.2.tar.lz
"
