mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
testing/libsigrokdecode: rebuild against python 3.8
and fix the .pc version
This commit is contained in:
parent
b5840473cc
commit
171f6d3388
3 changed files with 40 additions and 7 deletions
|
@ -2,32 +2,39 @@
|
||||||
|
|
||||||
pkgname="libsigrokdecode"
|
pkgname="libsigrokdecode"
|
||||||
pkgver=0.5.2
|
pkgver=0.5.2
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="A C library to decode protocol data captured by logic analyzers"
|
pkgdesc="A C library to decode protocol data captured by logic analyzers"
|
||||||
url="https://sigrok.org/wiki/Libsigrokdecode"
|
url="https://sigrok.org/wiki/Libsigrokdecode"
|
||||||
makedepends="glib-dev libserialport-dev libzip-dev libusb-dev libftdi1-dev
|
makedepends="glib-dev libserialport-dev libzip-dev libusb-dev libftdi1-dev
|
||||||
glibmm-dev libsigrok-dev python3-dev check-dev"
|
glibmm-dev libsigrok-dev python3-dev check-dev
|
||||||
|
autoconf automake libtool"
|
||||||
depends=""
|
depends=""
|
||||||
arch="all"
|
arch="all"
|
||||||
license="GPL-3.0-only"
|
license="GPL-3.0-only"
|
||||||
source="http://sigrok.org/download/source/$pkgname/$pkgname-$pkgver.tar.gz"
|
source="http://sigrok.org/download/source/$pkgname/$pkgname-$pkgver.tar.gz
|
||||||
|
version.patch
|
||||||
|
python3-embed.patch"
|
||||||
subpackages="$pkgname-dev"
|
subpackages="$pkgname-dev"
|
||||||
builddir="$srcdir/$pkgname-$pkgver"
|
builddir="$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
default_prepare
|
||||||
|
autoreconf -vif
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${builddir}"
|
|
||||||
./configure --prefix=/usr/
|
./configure --prefix=/usr/
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "${builddir}"
|
|
||||||
make check
|
make check
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${builddir}"
|
|
||||||
make DESTDIR="$pkgdir" install
|
make DESTDIR="$pkgdir" install
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="49d0cba3a5fe17593165c3669dc8530e4e68497369b461f39b63c903f41a3060766c23d44c4112c9b9a5e740ae1e2c03a735494ac798dc631f3913079be04e22 libsigrokdecode-0.5.2.tar.gz"
|
sha512sums="49d0cba3a5fe17593165c3669dc8530e4e68497369b461f39b63c903f41a3060766c23d44c4112c9b9a5e740ae1e2c03a735494ac798dc631f3913079be04e22 libsigrokdecode-0.5.2.tar.gz
|
||||||
|
6d8fa69a891b4333fe77213cf75df218090e58b51d6c92197351d95a977634f2228a63c9c0c75fcb1d816c59ee9eaf410d5e79827ac7c79b0784262ea0f9c3fd version.patch
|
||||||
|
ab98ed3df3ad78fc19336a809c10ce00140ad4a389f31a6d05fe2122ee0698889a91c0711d57dc8d99ba888202f6dc9a10d485e473342298d94d3bccf52dbc99 python3-embed.patch"
|
||||||
|
|
13
testing/libsigrokdecode/python3-embed.patch
Normal file
13
testing/libsigrokdecode/python3-embed.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 56f01a2..c661c63 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -90,7 +90,7 @@ SR_PKG_CHECK_SUMMARY([srd_pkglibs_summary])
|
||||||
|
|
||||||
|
# Python 3 is always needed.
|
||||||
|
SR_PKG_CHECK([python3], [SRD_PKGLIBS],
|
||||||
|
- [python3 >= 3.2], [python-3.7 >= 3.7], [python-3.6 >= 3.6], [python-3.5 >= 3.5], [python-3.4 >= 3.4], [python-3.3 >= 3.3], [python-3.2 >= 3.2])
|
||||||
|
+ [python3-embed], [python3 >= 3.2], [python-3.7 >= 3.7], [python-3.6 >= 3.6], [python-3.5 >= 3.5], [python-3.4 >= 3.4], [python-3.3 >= 3.3], [python-3.2 >= 3.2])
|
||||||
|
AS_IF([test "x$sr_have_python3" = xno],
|
||||||
|
[AC_MSG_ERROR([Cannot find Python 3 development headers.])])
|
||||||
|
|
13
testing/libsigrokdecode/version.patch
Normal file
13
testing/libsigrokdecode/version.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/m4/sigrok.m4 b/m4/sigrok.m4
|
||||||
|
index 2ca2444..924b9df 100644
|
||||||
|
--- a/m4/sigrok.m4
|
||||||
|
+++ b/m4/sigrok.m4
|
||||||
|
@@ -54,7 +54,7 @@ m4_assert([$# >= 6])[]dnl
|
||||||
|
$1=$4
|
||||||
|
sr_git_deps=
|
||||||
|
# Check if we can get revision information from git.
|
||||||
|
-sr_head=`git -C "$srcdir" rev-parse --verify --short HEAD 2>&AS_MESSAGE_LOG_FD`
|
||||||
|
+sr_head=`test -d "$srcdir"/.git && git -C "$srcdir" rev-parse --verify --short HEAD 2>&AS_MESSAGE_LOG_FD`
|
||||||
|
|
||||||
|
AS_IF([test "$?" = 0 && test "x$sr_head" != x], [dnl
|
||||||
|
test ! -f "$srcdir/.git/HEAD" \
|
Loading…
Add table
Add a link
Reference in a new issue