aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-sip/APKBUILD
blob: f4304389187df52ce0bd7923e3697ecb9ca3e809 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer:
pkgname=py-sip
_pkgname=sip
pkgver=4.15.1
pkgrel=0
pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries"
url="http://www.riverbankcomputing.com/software/sip/"
arch="all"
license="custom:sip"
depends=""
depends_dev=""
makedepends="python-dev"
install=""
subpackages="$pkgname-dev"
source="http://sourceforge.net/projects/pyqt/files/sip/sip-$pkgver/sip-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
build() {
	cd "$_builddir"
	python configure.py
	make CC="${CC:-gcc}" \
		CXX="${CXX:-g++}" \
		CFLAGS="$CFLAGS" \
		CXXFLAGS="$CXXFLAGS" \
		|| return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/custom/${pkgname}/LICENSE
}

md5sums="ec1ce361ac3618fe05359ec6f5368463  sip-4.15.1.tar.gz"
sha256sums="0e2c698d95685ec24c00c27ea05be55782b094616429a4256f63850530d676ad  sip-4.15.1.tar.gz"
sha512sums="b746b35c0d138da7cc73a0f44392aabda7900eda908f8957917bf6e19f046f625ccaec533c2ff2e3f977f87a83185fad446625ddf0faccd2b0250871ea4914c7  sip-4.15.1.tar.gz"