pkgname=swig pkgver=3.0.12 pkgrel=1 pkgdesc="A compiler that makes it easy to integrate C and C++ code with scripting languages" arch=('x86_64') url="http://www.swig.org/" license=('custom') depends=('pcre' 'gcc-libs') checkdepends=('ruby' 'python2' 'java-environment' 'tcl' 'php' 'lua' 'ocaml' 'r' 'go' 'python2-cffi') source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz") sha1sums=('5cc1af41d041e4cc609580b99bb3dcf720effa25') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr make } check() { cd ${pkgname}-${pkgver} make check || warning "Tests failed" } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install cd "${srcdir}/${pkgname}-${pkgver}" install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -D -m644 LICENSE-UNIVERSITIES "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-UNIVERSITIES" }