🔒 Repository is read-only – file editing is disabled.

recipes/core/pcre2/PAGBUILD.yaml main

43 linii Raw ← Powrót
12345678910111213141516171819202122232425262728293031323334353637383940414243
pkgname: pcre2
pkgver: '10.47'
pkgrel: '1'
pkgdesc: 'Perl Compatible Regular Expression libraries, 2nd version.'
url: 'https://www.pcre.org/'
arch: x86_64
depends: []
makedepends:
- bzip2
- readline

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

sha256sums:
- 47fe8c99461250d42f89e6e8fdaeba9da057855d06eb7fc08d9ca03fd08d7bc7

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