mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-15 22:50:25 +08:00
50 lines
1.2 KiB
Bash
50 lines
1.2 KiB
Bash
# Arch contributor: https://git.archlinux.org/svntogit/community.git/plain/trunk/PKGBUILD?h=packages/lib32-pcre2
|
|
|
|
pkgname=lib32-pcre2
|
|
_pkgname=pcre2
|
|
pkgver=10.31
|
|
pkgrel=1
|
|
pkgdesc='A library that implements Perl 5-style regular expressions. 2nd version (32-bit)'
|
|
arch=('x86_64')
|
|
url='http://www.pcre.org/'
|
|
license=('BSD')
|
|
depends=('lib32-gcc-libs' 'lib32-readline' 'lib32-zlib' 'lib32-bzip2' 'bash')
|
|
source=("ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$_pkgname-$pkgver.tar.bz2")
|
|
sha512sums=('44d7db2513d9415dcdf6541366fea585e016f572f3e4379f6e959a38114b2337851092049ab4a1576ae8f19b9de413edbcfa62f434c77fc8470747ee5413e967')
|
|
|
|
build() {
|
|
cd $_pkgname-$pkgver
|
|
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
--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
|
|
rm -rf "${pkgdir}"/usr/{share,bin,include}
|
|
|
|
install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|