makedepends=(pcre2)

description="SWIG Simplified Wrapper and Interface Generator"
url="http://www.swig.org/"

packager="Great-OS Team"
maintainer="rems"

name=swig
version=4.4.0

source=("http://downloads.sourceforge.net/$name/$name-$version.tar.gz")

build() {
cd $name-$version

./configure --prefix=/usr \
            --without-clisp \
            --without-maximum-compile-warnings

make
make DESTDIR=$PKG install

install -v -m755 -d $PKG/usr/share/doc/$name-$version

cp -v -R Doc/* \
$PKG/usr/share/doc/$name-$version

install -D -m644 LICENSE $PKG/usr/share/licenses/$name/LICENSE
}
