aboutsummaryrefslogtreecommitdiffstats
path: root/main/swig/APKBUILD
blob: 501334a40199c6a8eeed3793a6bb6a3ecc241dc1 (plain) (blame)
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
38
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=swig
pkgver=3.0.7
pkgrel=1
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"
subpackages="$pkgname-doc"
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="7fff46c84b8c630ede5b0f0827e3d90a  swig-3.0.7.tar.gz"
sha256sums="06dc8816a225667ce1eee545af3caf87e1bbaa379c32838d4cea53152514348d  swig-3.0.7.tar.gz"
sha512sums="5f6596df66ef2788180623ee856247efbe404eb5c855f05e1e6a40081771b2bb8c709aad8597839250186c1ee9ae42d0fca3ffcecc9669bcf9a55c81f2c9ba38  swig-3.0.7.tar.gz"