PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/core/pcre2/PAGBUILD.yaml main

44 lines Raw ← Back
1234567891011121314151617181920212223242526272829303132333435363738394041424344
pkgname: pcre2
pkgver: '10.49'
pkgrel: '1'
pkgdesc: 'Perl Compatible Regular Expression libraries, 2nd version.'
url: 'https://www.pcre.org/'
arch: x86_64
depends:
- readline
makedepends:
- bzip2
- readline

source:
- 'https://github.com/PhilipHazel/pcre2/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2'

sha256sums:
- SKIP

build: |
  cd ${pkgname}-${pkgver}

  [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"

  ./configure --prefix=/usr \
  --docdir=/usr/share/doc/pcre2 \
  --enable-unicode \
  --enable-jit     \
  --enable-pcre2-16 \
  --enable-pcre2-32 \
  --enable-pcre2grep-libz \
  --enable-pcre2grep-libbz2 \
  --enable-pcre2test-libreadline \
  --disable-static
  make
  make DESTDIR=${PKGDIR} install

  # Obsolets libs
  rm -f ${PKGDIR}/usr/lib/libpcre2-16.la
  rm -f ${PKGDIR}/usr/lib/libpcre2-32.la
  rm -f ${PKGDIR}/usr/lib/libpcre2-8.la
  rm -f ${PKGDIR}/usr/lib/libpcre2-posix.la

package: |
  true