mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/zvbi: new aport
This commit is contained in:
parent
ba87f3a8c4
commit
cd5482f733
52
testing/zvbi/APKBUILD
Normal file
52
testing/zvbi/APKBUILD
Normal file
@ -0,0 +1,52 @@
|
||||
# Contributor: Gil Pedersen <gpdev@gpost.dk>
|
||||
# Maintainer: Gil Pedersen <gpdev@gpost.dk>
|
||||
pkgname=zvbi
|
||||
pkgver=0.2.43
|
||||
pkgrel=0
|
||||
pkgdesc="VBI capture and decoding tools"
|
||||
url="https://github.com/zapping-vbi/zvbi"
|
||||
arch="all"
|
||||
license="GPL-2.0-or-later"
|
||||
makedepends="automake autoconf libtool gettext-dev linux-headers libpng-dev"
|
||||
checkdepends="tzdata"
|
||||
subpackages="lib$pkgname-static lib$pkgname-dev $pkgname-doc lib$pkgname:libs"
|
||||
source="
|
||||
https://github.com/zapping-vbi/zvbi/archive/v$pkgver/zvbi-$pkgver.tar.gz
|
||||
fix-strptime-input.patch
|
||||
"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
CPPFLAGS="$CPPFLAGS -D__va_copy=va_copy" \
|
||||
./configure \
|
||||
--build=$CBUILD \
|
||||
--host=$CHOST \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/share/man \
|
||||
--localstatedir=/var \
|
||||
--disable-nls \
|
||||
--disable-rpath \
|
||||
--disable-dependency-tracking
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING.md
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
7216e6a3538e4b37d11dd45e5ebaf2b7c0c3b4ba4824e5854d508711f6a048fb9c3bb7b02262c0d91ef3019568ca1119b4b46043a23d1176edfcc78d48f70f48 zvbi-0.2.43.tar.gz
|
||||
c7d4a79775c7ac7d402bb8b1ccdf04a10e818031d193791856542dc4ee110493f94c63c01792c87ce8119c9485db4581dac697366b48b63960a99c09117dee4c fix-strptime-input.patch
|
||||
"
|
||||
12
testing/zvbi/fix-strptime-input.patch
Normal file
12
testing/zvbi/fix-strptime-input.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- zvbi-0.2.43/examples/pdc2.c 2024-12-03 15:58:59.000000000 +0100
|
||||
+++ zvbi-0.2.43-patched/examples/pdc2.c 2024-12-04 15:30:16.732859533 +0100
|
||||
@@ -1166,6 +1166,9 @@
|
||||
if (!isspace (*s))
|
||||
goto invalid;
|
||||
|
||||
+ while (isspace (*s))
|
||||
+ ++s;
|
||||
+
|
||||
memset (&tm, 0, sizeof (tm));
|
||||
tm.tm_isdst = -1; /* unknown */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user