# Maintainer: Natanael Copa pkgname=swig pkgver=3.0.6 pkgrel=0 pkgdesc="A compiler that makes it easy to integrate C and C++ code with scripting languages" url="http://www.swig.org/" arch="all" license="GPL3 BSD" depends="guile" makedepends="zlib-dev pcre-dev" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1 install -D -m644 LICENSE-UNIVERSITIES "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-UNIVERSITIES || return 1 } md5sums="df43ae271642bcfa61c1e59f970f9963 swig-3.0.6.tar.gz" sha256sums="c67f63ea11956106e4cda66416d5020330dc4ce2ee45057d39a9494ce33eca05 swig-3.0.6.tar.gz" sha512sums="b640ca98a668973b33e5079bfdd01dd722c136ee077fcb2990b82878409cb5ebf3ffb78baee8427f44ca1eb01f55f21b2a01c9e1f34986cd134609b4eb208610 swig-3.0.6.tar.gz"