add(main): new package pystring

This commit is contained in:
Ansh Dadwal 2022-08-24 19:12:10 +05:30 committed by 2096779623
parent 66cde05085
commit 61f40026e7
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,8 @@
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_SRCURL=https://github.com/imageworks/pystring/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=358a56e756e701836b69a31c75d3d9d41c34d447cf7b3775bbd5620dcd3203d9
TERMUX_PKG_BUILD_IN_SRC=true

View File

@ -0,0 +1,8 @@
--- pystring-1.1.3/Makefile 2012-10-16 21:31:17.000000000 +0000
+++ pystring-1.1.3.mod/Makefile 2022-08-24 14:13:00.081696122 +0000
@@ -1,5 +1,5 @@
LIBTOOL = libtool
-LIBDIR = /usr/lib
+LIBDIR = @TERMUX_PREFIX@/lib
CXX = g++
CXXFLAGS = -g -O3 -Wall -Wextra -Wshadow -Wconversion -Wcast-qual -Wformat=2