#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=swig
pkgver=4.0.2
pkgrel=1gv
source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
docs=("readme" "install" "license*" "copyright" "changes*" "announce" "releasenotes" "authors" "todo")
url=http://www.swig.org

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"swig (Generate scripting interfaces to C/C++ code)"
"SWIG is a software development tool that connects programs written in"
"C and C++ with a variety of high-level programming languages. SWIG is"
"used with different types of target languages including common"
"scripting languages such as Javascript, Perl, PHP, Python, Tcl and"
"Ruby. The list of supported languages also includes non-scripting"
"languages such as C#, D, Go language, Java including Android, Lua,"
"OCaml, Octave, Scilab and R."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
}