[arch-commits] Commit in pystring/repos (3 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Sun Jan 31 03:13:28 UTC 2021
Date: Sunday, January 31, 2021 @ 03:13:28
Author: svenstaro
Revision: 837020
archrelease: copy trunk to community-x86_64
Added:
pystring/repos/community-x86_64/
pystring/repos/community-x86_64/PKGBUILD
(from rev 837019, pystring/trunk/PKGBUILD)
pystring/repos/community-x86_64/makefile.patch
(from rev 837019, pystring/trunk/makefile.patch)
----------------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
makefile.patch | 26 ++++++++++++++++++++++++++
2 files changed, 60 insertions(+)
Copied: pystring/repos/community-x86_64/PKGBUILD (from rev 837019, pystring/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-01-31 03:13:28 UTC (rev 837020)
@@ -0,0 +1,34 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Tércio Martins <echo dGVyY2lvd2VuZGVsQGdtYWlsLmNvbQo= | base64 -d>
+# Contributor: Alexey Pavlov <alexpux at gmail.com>
+
+pkgname=pystring
+pkgver=1.1.3.git1
+_commit=281419de2f91f9e0f2df6acddfea3b06a43436be
+pkgrel=1
+arch=('x86_64')
+pkgdesc="C++ functions matching the interface and behavior of python string methods with std::string"
+url="https://github.com/imageworks/pystring"
+license=('BSD')
+depends=('gcc-libs')
+source=("https://github.com/imageworks/pystring/archive/$_commit.tar.gz"
+ "makefile.patch")
+sha512sums=('e7ee1bf8a37c7f453a2dd324524a0fede9ab4448dea4ad7b2774ce44c14605dc106fea9a629344db5d5da86be9ef923e8ddf904bf8b5fffabc36b4140f1cb433'
+ 'dc5f94cc062023d138ab9cab92081323c576b9e03d853b615981f2bc89dd5de96bd9a19c420bbd23eac5248b7949b337fe858622aae0751fbc0b16f59db77fdd')
+
+prepare() {
+ cd $pkgname-$_commit
+ patch -p1 -i "$srcdir/makefile.patch"
+}
+
+build() {
+ cd $pkgname-$_commit
+ make
+}
+
+package() {
+ cd $pkgname-$_commit
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 "$srcdir/$pkgname-$_commit/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"/LICENSE
+}
Copied: pystring/repos/community-x86_64/makefile.patch (from rev 837019, pystring/trunk/makefile.patch)
===================================================================
--- community-x86_64/makefile.patch (rev 0)
+++ community-x86_64/makefile.patch 2021-01-31 03:13:28 UTC (rev 837020)
@@ -0,0 +1,26 @@
+--- pystring/Makefile.orig 2020-02-04 03:24:44.000000000 -0300
++++ pystring/Makefile 2020-11-20 20:23:07.314247959 -0300
+@@ -1,7 +1,9 @@
+-LIBTOOL = libtool
+-LIBDIR = /usr/lib
+-CXX = g++
+-CXXFLAGS = -g -O3 -Wall -Wextra -Wshadow -Wconversion -Wcast-qual -Wformat=2
++LIBTOOL ?= libtool
++PREFIX ?= /usr
++INCLUDEDIR = ${PREFIX}/include/pystring
++LIBDIR = ${PREFIX}/lib
++CXX ?= g++
++CXXFLAGS ?= -g -O3 -Wall -Wextra -Wshadow -Wconversion -Wcast-qual -Wformat=2 -fPIC
+
+ all: libpystring.la
+
+@@ -12,7 +14,8 @@
+ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $< -rpath $(LIBDIR)
+
+ install: libpystring.la
+- $(LIBTOOL) --mode=install install -c $< $(LIBDIR)/$<
++ $(LIBTOOL) --mode=install install -Dm755 $< $(DESTDIR)$(LIBDIR)/$<
++ $(LIBTOOL) --mode=install install -Dm644 pystring.h $(DESTDIR)$(INCLUDEDIR)/pystring.h
+
+ clean:
+ $(RM) -fr pystring.lo pystring.o libpystring.la .libs
More information about the arch-commits
mailing list