core/swig/PKGBUILD

34 lines
931 B
Bash
Raw Normal View History

2010-11-22 09:27:10 +08:00
2010-03-22 01:35:58 +08:00
pkgname=swig
2015-05-26 06:14:45 +08:00
pkgver=3.0.5
pkgrel=1
2010-03-22 01:35:58 +08:00
pkgdesc="A compiler that makes it easy to integrate C and C++ code with scripting languages"
2013-07-27 20:12:30 +08:00
arch=('x86_64')
2010-03-22 01:35:58 +08:00
url="http://www.swig.org/"
2010-11-22 09:27:10 +08:00
license=('custom')
2014-08-20 05:09:09 +08:00
depends=('pcre' 'gcc-libs')
2015-05-26 06:14:45 +08:00
checkdepends=('ruby' 'python2' 'java-environment' 'tcl' 'php' 'lua' 'ocaml' 'r' 'go' 'python2-cffi')
2013-07-27 20:12:30 +08:00
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
2015-05-26 06:14:45 +08:00
sha1sums=('271813b317e4836853d2249fc8ce2df34c2a062a')
2010-03-22 01:35:58 +08:00
build() {
2010-11-22 09:27:10 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2010-03-22 01:35:58 +08:00
./configure --prefix=/usr
2010-11-22 09:27:10 +08:00
make
}
2014-08-20 05:09:09 +08:00
check() {
cd ${pkgname}-${pkgver}
make check || warning "Tests failed"
}
2010-11-22 09:27:10 +08:00
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
cd "${srcdir}/${pkgname}-${pkgver}"
2010-11-22 09:27:10 +08:00
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m644 LICENSE-UNIVERSITIES "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-UNIVERSITIES"
2010-03-22 01:35:58 +08:00
}
2010-12-22 06:09:37 +08:00