diff --git a/srcpkgs/libbaseencode/patches/fix-cflags.patch b/srcpkgs/libbaseencode/patches/fix-cflags.patch new file mode 100644 index 00000000000..1bb86a0b15a --- /dev/null +++ b/srcpkgs/libbaseencode/patches/fix-cflags.patch @@ -0,0 +1,13 @@ +Index: libbaseencode-1.0.9/CMakeLists.txt +=================================================================== +--- libbaseencode-1.0.9.orig/CMakeLists.txt ++++ libbaseencode-1.0.9/CMakeLists.txt +@@ -15,7 +15,7 @@ set(CMAKE_C_STANDARD 11) + set(BASEENCODE_HEADERS src/baseencode.h) + set(SOURCE_FILES src/base32.c src/base64.c) + +-set(CMAKE_C_FLAGS "-Wall -Werror -fPIC") ++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -fPIC") + + add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES}) + diff --git a/srcpkgs/libbaseencode/template b/srcpkgs/libbaseencode/template index 384a189224d..d5929ad7bb5 100644 --- a/srcpkgs/libbaseencode/template +++ b/srcpkgs/libbaseencode/template @@ -1,7 +1,7 @@ # Template file for 'libbaseencode' pkgname=libbaseencode version=1.0.9 -revision=1 +revision=2 build_style=cmake short_desc="Library for encoding decoding data use base32 or base64" maintainer="Orphaned " @@ -9,6 +9,7 @@ license="Apache-2.0" homepage="https://github.com/paolostivanin/libbaseencode" distfiles="https://github.com/paolostivanin/libbaseencode/archive/v${version}.tar.gz" checksum=a183d7cf30d931b2a078d6f0ef64616b71ab26f9258e5f4e191778c7ace7175d +patch_args=-Np1 libbaseencode-devel_package() { depends="libbaseencode-${version}_${revision}"