diff options
author | Ted Alff | 2017-12-01 20:41:54 -0500 |
---|---|---|
committer | Ted Alff | 2017-12-01 20:41:54 -0500 |
commit | 3e3f0ffa367ee2c44faff663d5af218ed80a4e7f (patch) | |
tree | 15d466ed56a35b00b8a37881759d78f90f4ef9d6 | |
parent | c1fb454bc32bbc417eb467007847fa7ffd6d8a66 (diff) | |
download | aur-3e3f0ffa367ee2c44faff663d5af218ed80a4e7f.tar.gz |
Add patch so compile doesn't fail on warnings.
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 9 | ||||
-rw-r--r-- | no_fail_on_warning.patch | 12 |
3 files changed, 22 insertions, 5 deletions
@@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Tue Oct 17 01:54:33 UTC 2017 +# Sat Dec 2 01:41:34 UTC 2017 pkgbase = radiotray-ng-git pkgdesc = An Internet radio player for Linux - pkgver = 0.2.0.r22.40aa78b + pkgver = 0.2.0.r42.aafdd77 pkgrel = 1 url = https://github.com/ebruck/radiotray-ng arch = i686 @@ -27,7 +27,9 @@ pkgbase = radiotray-ng-git conflicts = radiotray-ng options = !libtool source = radiotray-ng::git+https://github.com/ebruck/radiotray-ng#branch=v0.2.0-dev + source = no_fail_on_warning.patch sha256sums = SKIP + sha256sums = cedd72d28535e202ca8658d6fbe96d7c1e18a079ecf8810bf79c8a7c09716baf pkgname = radiotray-ng-git @@ -4,7 +4,7 @@ _pkgname=radiotray-ng pkgname=${_pkgname}-git _pkgver=0.2.0 _branch=v${_pkgver}-dev -pkgver=0.2.0.r22.40aa78b +pkgver=0.2.0.r42.aafdd77 pkgrel=1 pkgdesc="An Internet radio player for Linux" arch=('i686' 'x86_64') @@ -17,8 +17,10 @@ optdepends=('python2-lxml: Convert radiotray bookmarks to radiotray-ng format') options=('!libtool') provides=("${_pkgname}=${pkgver%\.r*}") conflicts=("${_pkgname}") -source=("${_pkgname}::git+https://github.com/ebruck/radiotray-ng#branch=${_branch}") -sha256sums=('SKIP') +source=("${_pkgname}::git+https://github.com/ebruck/radiotray-ng#branch=${_branch}" + 'no_fail_on_warning.patch') +sha256sums=('SKIP' + 'cedd72d28535e202ca8658d6fbe96d7c1e18a079ecf8810bf79c8a7c09716baf') pkgver() { cd "${srcdir}/${_pkgname}" @@ -29,6 +31,7 @@ prepare() { cd "${srcdir}/${_pkgname}" # Build fails when GMock is found, so don't check for it, don't compile tests sed -i 's:if (GMOCK_FOUND):if (GMOCK_FOUND AND ENABLE_GMOCK):' CMakeLists.txt + patch -uNp2 -r- -i ../no_fail_on_warning.patch } build() { diff --git a/no_fail_on_warning.patch b/no_fail_on_warning.patch new file mode 100644 index 000000000000..17c9234472d7 --- /dev/null +++ b/no_fail_on_warning.patch @@ -0,0 +1,12 @@ +diff -Naur ./radiotray-ng.orig/CMakeLists.txt ./radiotray-ng/CMakeLists.txt +--- ./radiotray-ng.orig/CMakeLists.txt 2017-12-01 20:37:18.786630180 -0500 ++++ ./radiotray-ng/CMakeLists.txt 2017-12-01 20:37:44.756629724 -0500 +@@ -51,7 +51,7 @@ + set(CMAKE_CXX_STANDARD 14) + add_definitions("-DBOOST_LOG_DYN_LINK") + add_compile_options("-fdiagnostics-color=auto") +-set(warnings "-Wall -Wextra -Werror") ++set(warnings "-Wall -Wextra") + set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s") + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s") + |