libbaseencode: hardening

This commit is contained in:
Đoàn Trần Công Danh 2021-03-25 08:34:32 +07:00
parent 106c7888e8
commit 9194e1a3a9
2 changed files with 15 additions and 1 deletions

View File

@ -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})

View File

@ -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 <orphan@voidlinux.org>"
@ -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}"