mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 03:47:16 +02:00
43 lines
1.2 KiB
Text
43 lines
1.2 KiB
Text
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=swig
|
|
pkgver=4.3.0
|
|
pkgrel=0
|
|
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="
|
|
5dfb8aa9898fccb063dbdf5d6266928cf46d671491308d2c122c59414377f1558015a37d7268729f62c5d4ee20438c98c83ee575fb00078dfe77564ee46a2f64 swig-4.3.0.tar.gz
|
|
62d6eecba01abe8ddd5a3b8a5512b57e63182b49d957bb81903c29dfccfaa62e75555dabc2c7b163afb8432328dd10e23bec0e3bf1d1d7622ec1119f5dab0a64 fix-test-sed-PATH.patch
|
|
"
|