44 lines
1.4 KiB
Bash
44 lines
1.4 KiB
Bash
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
|
# then please put 'unknown'.
|
|
|
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
|
pkgname=pcre2
|
|
pkgver=10.43
|
|
pkgrel=1
|
|
pkgdesc="A library that implements Perl 5-style regular expressions. 2nd version"
|
|
arch=('x86_64')
|
|
url="https://www.pcre.org/"
|
|
license=('BSD')
|
|
license=('BSD-3-Clause')
|
|
depends=('bzip2' 'glibc' 'readline' 'zlib')
|
|
source=(https://github.com/PCRE2Project/pcre2/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2)
|
|
sha256sums=(e2a53984ff0b07dfdb5ae4486bbb9b21cca8e7df2434096cc9bf1b728c350bcb)
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
CFLAGS+=" -ffat-lto-objects"
|
|
CXXFLAGS+=" -ffat-lto-objects"
|
|
|
|
${CONFIGURE} \
|
|
--enable-unicode \
|
|
--enable-jit \
|
|
--enable-pcre2-16 \
|
|
--enable-pcre2-32 \
|
|
--enable-pcre2grep-libz \
|
|
--enable-pcre2grep-libbz2 \
|
|
--enable-pcre2test-libreadline \
|
|
--disable-static \
|
|
--docdir=/usr/share/doc/${pkgname}-${pkgver}
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
}
|