[arch-commits] Commit in lib32-pcre/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Mar 11 23:34:28 UTC 2020
Date: Wednesday, March 11, 2020 @ 23:34:28
Author: felixonmars
Revision: 594721
archrelease: copy trunk to multilib-testing-x86_64
Added:
lib32-pcre/repos/multilib-testing-x86_64/
lib32-pcre/repos/multilib-testing-x86_64/PKGBUILD
(from rev 594719, lib32-pcre/trunk/PKGBUILD)
----------+
PKGBUILD | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
Copied: lib32-pcre/repos/multilib-testing-x86_64/PKGBUILD (from rev 594719, lib32-pcre/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD (rev 0)
+++ multilib-testing-x86_64/PKGBUILD 2020-03-11 23:34:28 UTC (rev 594721)
@@ -0,0 +1,59 @@
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+
+_pkgbasename=pcre
+pkgname=lib32-$_pkgbasename
+pkgver=8.44
+pkgrel=1
+pkgdesc="A library that implements Perl 5-style regular expressions (32-bit)"
+arch=('x86_64')
+url="https://www.pcre.org"
+license=('custom')
+depends=('lib32-gcc-libs' $_pkgbasename)
+source=("https://ftp.pcre.org/pub/pcre/$_pkgbasename-$pkgver.tar.bz2"{,.sig})
+sha512sums=('f26d850aab5228799e58ac8c2306fb313889332c39e29b118ef1de57677c5c90f970d68d3f475cabc64f8b982a77f04eca990ff1057f3ccf5e19bd137997c4ac'
+ 'SKIP')
+validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel
+
+prepare() {
+ cd "${srcdir}"/${_pkgbasename}-${pkgver}
+ # apply patch from the source array (should be a pacman feature)
+ local filename
+ for filename in "${source[@]}"; do
+ if [[ "$filename" =~ \.patch$ ]]; then
+ msg2 "Applying patch ${filename##*/}"
+ patch -p1 -N -i "$srcdir/${filename##*/}"
+ fi
+ done
+ :
+}
+
+build() {
+ cd "${srcdir}"/${_pkgbasename}-${pkgver}
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib32 \
+ --enable-unicode-properties \
+ --enable-pcre16 \
+ --enable-pcre32 \
+ --enable-jit
+ make
+}
+
+check() {
+ cd "${srcdir}"/${_pkgbasename}-${pkgver}
+
+ make -j1 check
+}
+
+package() {
+ cd "${srcdir}/${_pkgbasename}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}"/usr/{include,share,bin}
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}
More information about the arch-commits
mailing list