ayaports/backports/swig3/APKBUILD

46 lines
1.4 KiB
Text

# Maintainer: Noel Kuntze <noel.kuntze@contauro.com>
pkgname=swig3
pkgver=3.0.12
pkgrel=3
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 pcre-dev bison"
checkdepends="boost-dev perl-dev python3-dev diffutils"
options="!check" # Check for javascript fails
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/swig/swig-$pkgver.tar.gz
swig-3.0.12-Fix-generated-code-for-constant-expressions-containi.patch
"
builddir="$srcdir/swig-$pkgver"
prepare() {
default_prepare
update_config_sub
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--with-python3=/usr/bin/python3 \
--program-suffix=3.0
make
}
check() {
env PERL5LIB=. make 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="5eaa2e06d8e4197fd02194051db1e518325dbb074a4c55a91099ad9c55193874f577764afc9029409a41bd520a95154095f26e33ef5add5c102bb2c1d98d33eb swig-3.0.12.tar.gz
0cde94a04a3f914f6e1ac79866d199981600c0f4be18b52d08194de96d524027c6572eacd5c1e155a9007fc34ed9dece27dbcb974874de072fb42bf564978cd0 swig-3.0.12-Fix-generated-code-for-constant-expressions-containi.patch"