Unverified Commit 535457e7 authored by Daniel Bermond's avatar Daniel Bermond
Browse files

Add patch to fix build with gcc 11

parent 6966bbb3
Pipeline #27665 passed with stages
in 35 seconds
pkgbase = librist
pkgdesc = A library that can be used to add the RIST protocol to applications
pkgver = 0.2.0rc6
pkgver = 0.2.0
pkgrel = 1
url = https://code.videolan.org/rist/librist/
arch = x86_64
......@@ -11,8 +11,10 @@ pkgbase = librist
makedepends = lz4
depends = cjson
depends = mbedtls
source = https://code.videolan.org/rist/librist/-/archive/v0.2.0-RC6/librist-v0.2.0-RC6.tar.bz2
sha256sums = 74451d9b47c190649be7c95291c37f9bf4b2f766d540dd47c6f213f79f7c7edc
source = https://code.videolan.org/rist/librist/-/archive/v0.2.0/librist-v0.2.0.tar.bz2
source = 010-librist-gcc11-fix.patch
sha256sums = 10abfc4321762b12cce8d57b2ed2cc16c8baf1535f2d19df39fe9429d20d6de9
sha256sums = 462003e930c8d83d0c43e92bbb3b65a013dbb56e8642d894ebd22e962e8cc94b
pkgname = librist
--- a/meson.build
+++ b/meson.build
@@ -88,7 +88,7 @@ else
deps += [ lib_rt ]
cdata.set('HAVE_CLOCK_GETTIME', 1)
endif
- add_project_arguments(['-Wshadow', '-pedantic-errors'], language: 'c')
+ add_project_arguments(['-Wshadow'], language: 'c')
add_project_arguments(cc.get_supported_arguments([
'-Wundef',
'-Werror=vla',
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=librist
pkgver=0.2.0rc6
_srcver=0.2.0-RC6
pkgver=0.2.0
pkgrel=1
pkgdesc='A library that can be used to add the RIST protocol to applications'
arch=('x86_64')
......@@ -11,11 +10,17 @@ license=('BSD')
depends=('cjson' 'mbedtls')
makedepends=('meson' 'cmake' 'cmocka' 'lz4')
BUILDENV=('!check')
source=("https://code.videolan.org/rist/librist/-/archive/v${_srcver}/${pkgname}-v${_srcver}.tar.bz2")
sha256sums=('74451d9b47c190649be7c95291c37f9bf4b2f766d540dd47c6f213f79f7c7edc')
source=("https://code.videolan.org/rist/librist/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.bz2"
'010-librist-gcc11-fix.patch')
sha256sums=('10abfc4321762b12cce8d57b2ed2cc16c8baf1535f2d19df39fe9429d20d6de9'
'462003e930c8d83d0c43e92bbb3b65a013dbb56e8642d894ebd22e962e8cc94b')
prepare() {
patch -d "${pkgname}-v${pkgver}" -Np1 -i "${srcdir}/010-librist-gcc11-fix.patch"
}
build() {
arch-meson build "${pkgname}-v${_srcver}"
arch-meson build "${pkgname}-v${pkgver}"
ninja -v -C build
}
......@@ -25,5 +30,5 @@ check() {
package() {
DESTDIR="$pkgdir" ninja -v -C build install
install -D -m644 "${pkgname}-v${_srcver}/COPYING" -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -D -m644 "${pkgname}-v${pkgver}/COPYING" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
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