blob: 6abb8c80e42dda5cbdfacc6fb4178efd96ab7849 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=swig
pkgver=4.1.0
pkgrel=1
pkgdesc="A compiler that makes it easy to integrate C and C++ code with scripting languages"
url="http://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() {
(
# export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
env
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="
a7d43d6aa764923826786081a3f2e25aa0f8345e1169c1e57bf02d01f6f41c92d8db0f360ec86e0e428ef5a21d1b5cd3edb7e4b71d0beff3e6611e344b5c22b1 swig-4.1.0.tar.gz
62d6eecba01abe8ddd5a3b8a5512b57e63182b49d957bb81903c29dfccfaa62e75555dabc2c7b163afb8432328dd10e23bec0e3bf1d1d7622ec1119f5dab0a64 fix-test-sed-PATH.patch
"
|