jobcore/pcre2/PKGBUILD-arch

60 lines
1.7 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
# Maintainer: 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
pkgver=10.44
pkgrel=1
2022-03-20 13:19:37 +01:00
pkgdesc='A library that implements Perl 5-style regular expressions. 2nd version'
arch=('x86_64')
url='https://github.com/PCRE2Project/pcre2'
license=('BSD-3-Clause')
depends=('bzip2' 'glibc' 'readline' 'zlib')
optdepends=('sh: for pcre2-config')
2022-09-18 11:47:55 +02:00
provides=(libpcre2-{8,16,32,posix}.so)
options=(staticlibs)
source=("$url/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"{,.sig})
sha512sums=('ee91cc10a2962bc7818b03d368df3dd31f42ea9a7260ae51483ea8cd331b7431e36e63256b0adc213cc6d6741e7c90414fd420622308c0ae3fcb5dd878591be2'
'SKIP')
b2sums=('fb06228f8bdc5906ef4f19d7d677f1009070855149d9ad3f807cfcd164f5cb6165f96e074fedc3942226d4b29edf4b29fab6cde2f2ba58bf6da282730941412b'
'SKIP')
2022-09-22 23:32:00 +02:00
validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel <ph10@hermes.cam.ac.uk>
2022-03-20 13:19:37 +01:00
build() {
local configure_options=(
--enable-jit
--enable-pcre2-16
--enable-pcre2-32
--enable-pcre2grep-libbz2
--enable-pcre2grep-libz
--enable-pcre2test-libreadline
--prefix=/usr
)
2022-09-22 23:32:00 +02:00
cd $pkgname-$pkgver
2024-04-04 15:54:44 +02:00
2022-09-22 23:32:00 +02:00
# use fat LTO objects for static libraries
CFLAGS+=" -ffat-lto-objects"
CXXFLAGS+=" -ffat-lto-objects"
./configure "${configure_options[@]}"
2022-03-20 13:19:37 +01:00
make
}
check() {
cd $pkgname-$pkgver
make -j1 check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
2022-09-22 23:32:00 +02:00
# vim:set sw=2 sts=-1 et: