jobcore/pcre2/PKGBUILD
2022-04-18 22:23:56 +03:00

50 lines
1.4 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=pcre2
pkgver=10.40
pkgrel=01
pkgdesc='A library that implements Perl 5-style regular expressions. 2nd version'
arch=('x86_64')
url='https://www.pcre.org/'
depends=('gcc-libs' 'readline' 'zlib' 'bzip2' 'bash')
source=("https://github.com/PhilipHazel/pcre2/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"{,.sig})
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--enable-pcre2-16 \
--enable-pcre2-32 \
--enable-jit \
--enable-pcre2grep-libz \
--enable-pcre2grep-libbz2 \
--enable-pcre2test-libreadline
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"
}
#---- license gpg-key sha256sums ----
license=('BSD')
validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel
sha256sums=(14e4b83c4783933dc17e964318e6324f7cae1bc75d8f3c79bc6969f00c159d68 # pcre2-10.40.tar.bz2
f1d2b3fce3ca63d50b589a00402d4736e8b725a7b8d3165805b534415b846ea4) # pcre2-10.40.tar.bz2.sig