# Maintainer: Natanael Copa pkgname=swig pkgver=4.1.1 pkgrel=5 pkgdesc="A compiler that makes it easy to integrate C and C++ code with scripting languages" url="https://www.swig.org/" arch="all" license="GPL-3.0-only" depends="guile" makedepends="zlib-dev pcre2-dev bison" checkdepends="boost-dev perl-dev python3-dev diffutils" subpackages="$pkgname-doc" source="https://downloads.sourceforge.net/swig/swig-$pkgver.tar.gz fix-test-sed-PATH.patch " build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --with-python3=/usr/bin/python3 make } check() { ( # ccache test seems broken with ccache in the path.. export PATH="/usr/bin:/bin:/usr/sbin:/sbin" make -C CCache check ) } package() { make DESTDIR="$pkgdir" install install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE install -D -m644 LICENSE-UNIVERSITIES "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-UNIVERSITIES } sha512sums=" 1cea1918455a75ebc9b2653dd1715bd5dcd974554955f324295c6a6f14c0a715651b221b85fad4a8af5197e0c75bfe7b590bc6ba7178c26245fbbd9a7e110100 swig-4.1.1.tar.gz 62d6eecba01abe8ddd5a3b8a5512b57e63182b49d957bb81903c29dfccfaa62e75555dabc2c7b163afb8432328dd10e23bec0e3bf1d1d7622ec1119f5dab0a64 fix-test-sed-PATH.patch "