summaryrefslogblamecommitdiff
path: root/user/swig/APKBUILD
blob: 5780d1150dcf0e7b4297a45872cc6182391f9799 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                      
            
            
        


                                                                  



                                                    



                                                                           









                                 
                                                                                                 
                                                                            


           




                                                                                                        
                                                                                                                                                                
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=swig
pkgver=4.0.2
pkgrel=1
pkgdesc="Tool for integrating C and C++ code with other languages"
url="http://www.swig.org/"
arch="all"
license="GPL-3.0+ AND MIT"
depends=""
checkdepends="boost-dev diffutils"
makedepends="pcre-dev perl-dev python3-dev zlib-dev"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-python3 \
		--without-python
	make
}

check() {
	find Examples/test-suite/python -type f -name "python_overload_simple_cast*" -delete #470
	env PERL5LIB=. PY3=YES PATH=/usr/sbin:/usr/bin:/sbin:/bin 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="05e7da70ce6d9a733b96c0bcfa3c1b82765bd859f48c74759bbf4bb1467acb1809caa310cba5e2b3280cd704fca249eaa0624821dffae1d2a75097c7f55d14ed  swig-4.0.2.tar.gz"