pystring: Bump to 1.1.4

This commit is contained in:
Tee KOBAYASHI 2022-12-13 13:35:50 +09:00 committed by xtkoba
parent 2c8df77d43
commit 4ab347b779
2 changed files with 5 additions and 36 deletions

View File

@ -1,31 +0,0 @@
project(pystring
LANGUAGES CXX
)
cmake_minimum_required(VERSION 3.0)
set(CMAKE_CXX_FLAGS "-O3 -Wall -Wextra -Wshadow -Wconversion -Wcast-qual -Wformat=2 ${CMAKE_CXX_FLAGS}")
include(GNUInstallDirs)
mark_as_advanced(CLEAR CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_INCLUDEDIR
)
add_library(pystring SHARED
pystring.cpp
)
set_target_properties(pystring PROPERTIES
SOVERSION 0.0
)
install(TARGETS pystring
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
install(FILES pystring.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/pystring
)
add_executable(test pystring.cpp test.cpp)
target_compile_definitions(test PRIVATE PYSTRING_UNITTEST=1)

View File

@ -2,12 +2,12 @@ TERMUX_PKG_HOMEPAGE=https://github.com/imageworks/pystring
TERMUX_PKG_DESCRIPTION="C++ functions matching the interface and behavior of python string methods with std::string"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.1.3
TERMUX_PKG_REVISION=2
TERMUX_PKG_VERSION=1.1.4
TERMUX_PKG_SRCURL=https://github.com/imageworks/pystring/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=358a56e756e701836b69a31c75d3d9d41c34d447cf7b3775bbd5620dcd3203d9
TERMUX_PKG_SHA256=49da0fe2a049340d3c45cce530df63a2278af936003642330287b68cefd788fb
TERMUX_PKG_DEPENDS="libc++"
termux_step_pre_configure() {
cp $TERMUX_PKG_BUILDER_DIR/CMakeLists.txt $TERMUX_PKG_SRCDIR/
termux_step_post_make_install() {
install -Dm600 -t $TERMUX_PREFIX/include/pystring \
$TERMUX_PKG_SRCDIR/pystring.h
}