71 lines
2.2 KiB
Bash
71 lines
2.2 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=pcre2
|
|
pkgver=10.44
|
|
pkgrel=01
|
|
pkgdesc='A library that implements Perl 5-style regular expressions. 2nd version'
|
|
url='https://github.com/PCRE2Project/pcre2'
|
|
depends=('bzip2' 'glibc' 'readline' 'zlib')
|
|
optdepends=('sh: for pcre2-config')
|
|
provides=(libpcre2-{8,16,32,posix}.so)
|
|
options=(staticlibs)
|
|
#options=(debug staticlibs) ### uncomment this to have the corresponding debug pkg produced
|
|
#source=("https://github.com/PhilipHazel/pcre2/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"{,.sig})
|
|
source=("$url/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"{,.sig})
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
|
|
# use fat LTO objects for static libraries
|
|
CFLAGS+=" -ffat-lto-objects"
|
|
CXXFLAGS+=" -ffat-lto-objects"
|
|
|
|
./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"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('BSD-3-Clause')
|
|
|
|
validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel <ph10@hermes.cam.ac.uk>
|
|
|
|
sha512sums=('ee91cc10a2962bc7818b03d368df3dd31f42ea9a7260ae51483ea8cd331b7431e36e63256b0adc213cc6d6741e7c90414fd420622308c0ae3fcb5dd878591be2'
|
|
'SKIP')
|
|
b2sums=('fb06228f8bdc5906ef4f19d7d677f1009070855149d9ad3f807cfcd164f5cb6165f96e074fedc3942226d4b29edf4b29fab6cde2f2ba58bf6da282730941412b'
|
|
'SKIP')
|
|
sha256sums=(d34f02e113cf7193a1ebf2770d3ac527088d485d4e047ed10e5d217c6ef5de96 # pcre2-10.44.tar.bz2
|
|
df418f44905d5df54783a19724dce2355062a3eb75ee17aaae32bcb61aa26bde) # pcre2-10.44.tar.bz2.sig
|
|
|
|
## c46c74e99e69aec9b8c363de621fb0900e422fa3e4ff667a04f571b51c06ccbd pcre2-10.44-01-x86_64.pkg.tar.lz
|
|
|