diff options
author | Théo Le Calvar | 2021-09-11 09:51:31 +0200 |
---|---|---|
committer | Théo Le Calvar | 2021-09-11 09:51:31 +0200 |
commit | d5330392bf5f35794a4247661d2e457b64e40dff (patch) | |
tree | f6a0906a36db0c4b87a30fe77fd5d703f600253b /PKGBUILD | |
parent | d221118b557fd0319e8fef7e3e9a799de537f95f (diff) | |
download | aur-d5330392bf5f35794a4247661d2e457b64e40dff.tar.gz |
fix compilation error with linux 5.13
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -3,7 +3,7 @@ pkgbase=decklink pkgname=(decklink mediaexpress) _pkgname=decklink pkgver=12.1 -pkgrel=1 +pkgrel=2 pkgdesc="Drivers for Blackmagic Design DeckLink, Intensity or Multibridge video editing cards" arch=('i686' 'x86_64') url="https://www.blackmagicdesign.com/support/family/capture-and-playback" @@ -29,8 +29,10 @@ DLAGENTS=("https::/usr/bin/curl \ )" ) -source=("${_pkgsrc_file}"::"${_pkgsrc_url}") -sha256sums=('51febf247d22412beea2d637fcc34cc19b1a46df9a5bf0e157d95705bf7c7b73') +source=("${_pkgsrc_file}"::"${_pkgsrc_url}" + "bm_util.c_5.13.4-200.fc34.x86_64.patch") +sha256sums=('51febf247d22412beea2d637fcc34cc19b1a46df9a5bf0e157d95705bf7c7b73' + '66e4bd6a55fcabb1c774c326318daba7fbeb6febcf8867f55c54bf00fc113504') prepare() { cd $srcdir/Blackmagic_Desktop_Video_Linux_$pkgver/other/${_arch} @@ -39,11 +41,16 @@ prepare() { cd desktopvideo-*/usr/src - # for p in ${srcdir}/*.patch; - # do - # echo "Applying ${p}" - # patch --forward --strip=1 --input="${p}" - # done + for p in ${srcdir}/*.patch; + do + echo "Applying ${p}" + patch --forward --strip=1 --input="${p}" + done + + + # fix error related to "initialization of « unsigned int (*)(struct tty_struct *) » from pointer type « int (*)(struct tty_struct *) »" + sed "s:^EXTRA_CFLAGS +=:EXTRA_CFLAGS += -Wno-error=incompatible-pointer-types:" -i blackmagic-io-*/Makefile + sed "s:^EXTRA_CFLAGS +=:EXTRA_CFLAGS += -Wno-error=incompatible-pointer-types:" -i blackmagic-[0-9]*/Makefile } package_decklink() { |