* Use an older glibc so resulting binaries can run on older systems (without having to link statically against glibc) * Call packages static-compat-* to make it clear that these packages are intended for compatibility with older distributions * Add further libraries to get static-compat-qt6-base and some other static-compat-qt6-* packages building
55 lines
1.6 KiB
Bash
55 lines
1.6 KiB
Bash
# Contributor: Felix Yan <felixonmars@archlinux.org>
|
|
# Contributor: Mateusz 'mrlemux' Lemusisk mrlemux at gmail dotcom
|
|
# Based on the pcre package by Sébastien "Seblu" Luttringer
|
|
# Contributor: Allan McRae <allan@archlinux.org>
|
|
# Contributor: Eric Belanger <eric@archlinux.org>
|
|
# Contributor: John Proctor <jproctor@prium.net>
|
|
|
|
_pkgname=pcre2
|
|
pkgname=static-compat-$_pkgname
|
|
pkgver=10.39
|
|
pkgrel=1
|
|
pkgdesc='A library that implements Perl 5-style regular expressions. 2nd version'
|
|
arch=('x86_64')
|
|
url='https://www.pcre.org/'
|
|
license=('BSD')
|
|
depends=('gcc-libs-static-compat')
|
|
makedepends=('static-compat-configure')
|
|
options=(!emptydirs staticlibs)
|
|
source=("https://github.com/PhilipHazel/${_pkgname}/releases/download/${_pkgname}-$pkgver/${_pkgname}-$pkgver.tar.bz2"{,.sig})
|
|
sha512sums=('b3d898198f4b5ffc3453d2ba56fe2a7298c01c52e5f67d45f1e046fc0dee62e16a4024fcb65839ac9c367beedb531647affd6f8599fbeb102f19423c150d80d4'
|
|
'SKIP')
|
|
validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel
|
|
|
|
build() {
|
|
source static-compat-environment
|
|
cd $_pkgname-$pkgver
|
|
static-compat-configure \
|
|
--disable-shared \
|
|
--enable-static \
|
|
--enable-pcre2-16 \
|
|
--enable-pcre2-32 \
|
|
--enable-jit \
|
|
--disable-pcre2grep-libz \
|
|
--disable-pcre2grep-libbz2 \
|
|
--disable-pcre2test-libreadline
|
|
make
|
|
}
|
|
|
|
check() {
|
|
source static-compat-environment
|
|
cd $_pkgname-$pkgver
|
|
make -j1 check
|
|
}
|
|
|
|
package() {
|
|
source static-compat-environment
|
|
cd $_pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
rm -r "$pkgdir/$static_compat_prefix"/share/{doc,man}
|
|
|
|
install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|