blob: 69ab2659e232d20a18ee63d9ea1acdcc31a3bad7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=swig
pkgver=3.0.6
pkgrel=0
pkgdesc="A compiler that makes it easy to integrate C and C++ code with scripting languages"
url="http://www.swig.org/"
arch="all"
license="GPL3 BSD"
depends="guile"
makedepends="zlib-dev pcre-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1
install -D -m644 LICENSE-UNIVERSITIES "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-UNIVERSITIES || return 1
}
md5sums="df43ae271642bcfa61c1e59f970f9963 swig-3.0.6.tar.gz"
sha256sums="c67f63ea11956106e4cda66416d5020330dc4ce2ee45057d39a9494ce33eca05 swig-3.0.6.tar.gz"
sha512sums="b640ca98a668973b33e5079bfdd01dd722c136ee077fcb2990b82878409cb5ebf3ffb78baee8427f44ca1eb01f55f21b2a01c9e1f34986cd134609b4eb208610 swig-3.0.6.tar.gz"
|