diff options
author | git user | 2023-08-01 00:59:45 +0200 |
---|---|---|
committer | git user | 2023-08-01 00:59:45 +0200 |
commit | c74c073025bbb4ce449a3c51bc8e7586043a7bf1 (patch) | |
tree | 522a2bbc3755fe20b9af990f4fba9ab90e538177 | |
parent | cc97ee7c56d621193c5c689df3e2436187717e7d (diff) | |
download | aur-c74c073025bbb4ce449a3c51bc8e7586043a7bf1.tar.gz |
Added patch to fix build error
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 31 insertions, 13 deletions
@@ -42,6 +42,8 @@ pkgbase = tizonia-all-git conflicts = tizonia-all conflicts = tizonia source = tizonia-all-git::git+https://github.com/tizonia/tizonia-openmax-il.git + source = fix_chromecast_placeholders_error.patch::https://github.com/tizonia/tizonia-openmax-il/files/9795320/fix_chromecast_placeholders_error.patch.txt sha256sums = SKIP + sha256sums = 8b538221bb0bf0d068a8502fc3bd9e2d6cea1fc9311a32d93e5aec13db646eea pkgname = tizonia-all-git @@ -51,8 +51,31 @@ conflicts=( 'tizonia' ) options=() -source=("${pkgname}"::git+https://github.com/tizonia/${_githubname}.git) -sha256sums=('SKIP') +source=( + "${pkgname}"::git+https://github.com/tizonia/${_githubname}.git + "fix_chromecast_placeholders_error.patch::https://github.com/tizonia/tizonia-openmax-il/files/9795320/fix_chromecast_placeholders_error.patch.txt" +) +sha256sums=( + 'SKIP' + '8b538221bb0bf0d068a8502fc3bd9e2d6cea1fc9311a32d93e5aec13db646eea' +) + +prepare() { + if command -v tizonia > /dev/null 2>&1; then + plain '' + error "Please uninstall tizonia, tizonia-all or tizonia-all-git before proceeding." + error "See https://github.com/tizonia/tizonia-openmax-il/issues/485." + plain '' + exit 1 + fi + + cd "$pkgname" + + for _patch in "${srcdir}/fix_chromecast_placeholders_error.patch"; do + msg2 "Applying patch '$(basename "${_patch}")' ..." + patch -Np1 --follow-symlinks -i "${_patch}" + done +} pkgver() { cd "$pkgname" @@ -70,21 +93,14 @@ pkgver() { fi } -prepare() { - if command -v tizonia > /dev/null 2>&1; then - plain '' - error "Please uninstall tizonia, tizonia-all or tizonia-all-git before proceeding." - error "See https://github.com/tizonia/tizonia-openmax-il/issues/485." - plain '' - exit 1 - fi -} build() { #export CFLAGS='-O2 -s -DNDEBUG' #export CXXFLAGS='-O2 -s -DNDEBUG -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' - # libspotify does no longer exist & also does no longer work, so disable it - export SAMUFLAGS="-j$(nproc)" + #export CC=gcc-9 + #export CXX=c++-9 + # libspotify does no longer exist & also does no longer work, so disable it. + export SAMUFLAGS="-j1" # Eats a lot of ram. meson setup --prefix=/usr --buildtype=plain -Dlibspotify=false "${pkgname}" build samu -v -C build } |