PKGBUILDs/pcre2/static-compat/PKGBUILD

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.40
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=('00e7b48a6554b9127cb6fe24c5cacf72783416a9754ec88f62f73c52f46ed72c86c1869e62c91a31b2ff2cbafbbedabca44b3f1eb7670bc92f49d8401c7374e8'
'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: