OTPClient: update to 3.1.8, adopt

This commit is contained in:
Emil Miler 2023-03-06 15:34:39 +01:00 committed by classabbyamp
parent eaa423a95d
commit e31d5b39d3
2 changed files with 7 additions and 23 deletions

View File

@ -1,17 +0,0 @@
Index: OTPClient-2.4.4/CMakeLists.txt
===================================================================
--- OTPClient-2.4.4.orig/CMakeLists.txt
+++ OTPClient-2.4.4/CMakeLists.txt
@@ -11,11 +11,10 @@ option(BUILD_GUI "Build the GUI" ON)
option(BUILD_CLI "Build the CLI" ON)
set(CMAKE_C_STANDARD 11)
-set(CMAKE_C_FLAGS "-Wall -Wextra -O2 -Wformat=2 -Wmissing-format-attribute -fstack-protector-strong -Wundef -Wmissing-format-attribute")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wformat=2 -Wmissing-format-attribute -fstack-protector-strong -Wundef -Wmissing-format-attribute")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fdiagnostics-color=always -Wstrict-prototypes -Wunreachable-code")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wchar-subscripts -Wwrite-strings -Wpointer-arith -Wbad-function-cast -Wcast-align")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=format-security -Werror=implicit-function-declaration -Wno-sign-compare")
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2")
if(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pie -fPIE")
endif()

View File

@ -1,14 +1,15 @@
# Template file for 'OTPClient'
pkgname=OTPClient
version=2.4.8
revision=2
version=3.1.8
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="gtk+3-devel libglib-devel libgcrypt-devel libpng-devel
libzip-devel libcotp-devel libzbar-devel jansson-devel"
libcotp-devel libzbar-devel jansson-devel protobuf-devel protobuf-c-devel
libuuid-devel libsecret-devel qrencode-devel"
short_desc="Highly secure and easy to use GTK+ OTP client"
maintainer="Ulf <void@uw.anonaddy.com>"
maintainer="Emil Miler <em@0x45.cz>"
license="GPL-3.0-or-later"
homepage="https://github.com/paolostivanin/OTPClient"
distfiles="https://github.com/paolostivanin/OTPClient/archive/v${version}.tar.gz"
checksum=252dd4cad71ea19f26686a8c6cfdb12fb25100cb98694fd36eec1a4d28f39a23
distfiles="https://github.com/paolostivanin/OTPClient/archive/refs/tags/v${version}.tar.gz"
checksum=5b85aefa4bd10d96c7866a6b77264b416124f272b3082fb7b854e68762129c14