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

            
                                                                  
                           
          


                                  
                                                     
                          
                                                                           

         









                                 
                                                                            


           




                                                                                                        
                                                                                                                                                                
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=swig
pkgver=4.2.1
pkgrel=0
pkgdesc="Tool for integrating C and C++ code with other languages"
url="https://www.swig.org/"
arch="all"
license="GPL-3.0+ AND MIT"
depends=""
checkdepends="boost-dev diffutils"
makedepends="pcre2-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() {
	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="019dee5a46d57e1030eef47cd5d007ccaadbdcd4e53cd30d7c795f0118ecf4406a78185534502c81c5f6d7bac0713256e7e19b20b5a2d14e2c552219edbaf5cf  swig-4.2.1.tar.gz"