mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
Most of these updates is based on data from https://repology.org/, detection based on permanent redirect from http:// to https://. $source urls are updated when they contain $url as substring.
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py3-sip
|
|
_pkgname=sip
|
|
pkgver=4.19.2
|
|
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"
|
|
makedepends="python3-dev"
|
|
options="!check"
|
|
replaces="py-sip"
|
|
subpackages="$pkgname-dev"
|
|
source="https://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"
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/custom/${pkgname}/LICENSE
|
|
}
|
|
|
|
sha512sums="6f14f387a899130cf15820d2b58d937d134a2eefd53c65a82af060e88a6ca039442b21f822880c4a3742d6f26328853a552239873c55d7b22de62a6cc5037b3e sip-4.19.2.tar.gz"
|