83 lines
2.9 KiB
Bash
83 lines
2.9 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.43
|
|
pkgrel=02
|
|
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}
|
|
fix-avx-detection.patch::"https://github.com/zherczeg/sljit/commit/56dbde07b05252f0b304b04040a86cfb9f109ae9.patch")
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
|
|
# Fix AVX detection
|
|
# [PATCH] Add xgetbv feature detection support on x86
|
|
patch -Np2 -i "$srcdir"/fix-avx-detection.patch -d src/sljit
|
|
|
|
}
|
|
|
|
|
|
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=('8ac1520c32e9e5672404aaf6104e23c9ee5c3c28ad28ff101435599d813cbb20e0491a3fd34e012b4411b3e0366a4c6dfa3f02d093acaa6ff0ab25478bb7ade9'
|
|
'SKIP'
|
|
'4379a06a142a9c9dc61298e86c722f1f2b6d83493acda8e472c866093b3e2192d315998c5a87dfd231739394d5c809c05415126084b18f80a002ee8861c0ed4f')
|
|
b2sums=('f87f9f36dd6a806cdba1f077f51b53da2583f1898f83e41d594622b28ac8efbc1b2d122b752a9d6cd461fe0e3c7c85ee93358443df518a336da4ee9d72cca808'
|
|
'SKIP'
|
|
'736aa7eaa2ed571117f545ae78151fda6a5ef5935bf70f132b1d20d0ff6e46543194f409a02eac727a8209fb0d25e6870705e8a95b3feb07e799d288fd852822')
|
|
|
|
sha256sums=(e2a53984ff0b07dfdb5ae4486bbb9b21cca8e7df2434096cc9bf1b728c350bcb # pcre2-10.43.tar.bz2
|
|
fe7a0bcafa5f4ee6d38b0a8c76a13c994e7effa19ef985bdf2c557e7362ab411 # pcre2-10.43.tar.bz2.sig
|
|
edda6691b7d59cce485c099b48e8fa8fef0bf3ea2676cc7278181959edbdc83a) # fix-avx-detection.patch
|
|
|
|
## d48e1dc37692f09ccb1abdf86795e2ede73e8e97c1f81fb3d022148874e2a905 pcre2-10.43-02-x86_64.pkg.tar.lz
|
|
|