Commit 3a99cf1e authored by Francesco Colista's avatar Francesco Colista
Browse files

testing/py3-sip: new aport

parent 1c2cae4c
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-sip
_pkgname=sip
pkgver=4.18
pkgrel=0
pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries. Python 3 package."
url="http://www.riverbankcomputing.com/software/sip/"
arch="all"
license="custom:sip"
depends=""
depends_dev=""
makedepends="python3-dev"
install=""
replaces="py-sip"
subpackages="$pkgname-dev"
source="http://sourceforge.net/projects/pyqt/files/$_pkgname/$_pkgname-$pkgver/$_pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$_builddir"
local sip_api_major_nr=$(sed -nre 's:^#define SIP_API_MAJOR_NR\s+([0-9]+):\1:p' siplib/sip.h.in)
python3 configure.py
make CC="${CC:-gcc}" \
CXX="${CXX:-g++}" \
CFLAGS="$CFLAGS -fPIC" \
CXXFLAGS="$CXXFLAGS" \
|| return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/custom/${pkgname}/LICENSE
}
md5sums="78724bf2a79878201c3bc81a1d8248ea sip-4.18.tar.gz"
sha256sums="f1dc5c81c07a9ad97edcd4a0af964a41e420024ba7ca165afd2b351efd249cb6 sip-4.18.tar.gz"
sha512sums="365fb51b8c833ebc923b87a961fac83976b653ebcec8fe7ad1543ee5a406471eb9309c8efbee6662c7b622f36771cd3ac31ede10208f23d2531a45af906d383d sip-4.18.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment