mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 14:44:36 +08:00
34 lines
931 B
Bash
34 lines
931 B
Bash
|
|
pkgname=swig
|
|
pkgver=3.0.5
|
|
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=('271813b317e4836853d2249fc8ce2df34c2a062a')
|
|
|
|
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"
|
|
}
|
|
|