upg pcre pcre2
This commit is contained in:
parent
de2ccbd8f2
commit
48bf5ee7a9
5 changed files with 31 additions and 46 deletions
|
@ -7,28 +7,15 @@
|
|||
|
||||
pkgname=pcre
|
||||
pkgver=8.45
|
||||
pkgrel=02
|
||||
pkgrel=03
|
||||
pkgdesc='A library that implements Perl 5-style regular expressions'
|
||||
arch=('x86_64')
|
||||
url='https://www.pcre.org/'
|
||||
depends=('gcc-libs' 'readline' 'zlib' 'bzip2' 'bash')
|
||||
provides=(libpcreposix.so libpcrecpp.so libpcre32.so libpcre16.so libpcre.so)
|
||||
#options=(debug staticlibs) ## uncomment this to have the debug pkg produced
|
||||
#options=(debug) ## uncomment this to have the debug pkg produced
|
||||
options=(staticlibs)
|
||||
# source=("https://ftp.pcre.org/pub/pcre/$pkgname-$pkgver.tar.bz2"{,.sig})
|
||||
source=(https://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2{,.sig})
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
# apply patch from the source array (should be a pacman feature)
|
||||
local filename
|
||||
for filename in "${source[@]}"; do
|
||||
if [[ "$filename" =~ \.patch$ ]]; then
|
||||
msg2 "Applying patch ${filename##*/}"
|
||||
patch -p1 -N -i "$srcdir/${filename##*/}"
|
||||
fi
|
||||
done
|
||||
:
|
||||
}
|
||||
provides=(libpcre{,16,32,posix,cpp}.so)
|
||||
source=("https://sourceforge.net/projects/pcre/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2"{,.sig})
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
|
@ -60,7 +47,7 @@ package() {
|
|||
|
||||
license=('BSD')
|
||||
|
||||
validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel
|
||||
validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel <ph10@hermes.cam.ac.uk>
|
||||
|
||||
sha256sums=(4dae6fdcd2bb0bb6c37b5f97c33c2be954da743985369cddac3546e3218bffb8 # pcre-8.45.tar.bz2
|
||||
b3480bc76adf5f220c21331d0efe24bc139c52ea687495765daad2b696b563c2) # pcre-8.45.tar.bz2.sig
|
||||
|
|
|
@ -5,31 +5,18 @@
|
|||
|
||||
pkgname=pcre
|
||||
pkgver=8.45
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc='A library that implements Perl 5-style regular expressions'
|
||||
arch=('x86_64')
|
||||
url='https://www.pcre.org/'
|
||||
license=('BSD')
|
||||
depends=('gcc-libs' 'readline' 'zlib' 'bzip2' 'bash')
|
||||
provides=(libpcreposix.so libpcrecpp.so libpcre32.so libpcre16.so libpcre.so)
|
||||
options=(debug staticlibs)
|
||||
source=(https://sourceforge.net/projects/pcre/files/pcre/$pkgver/pcre-$pkgver.tar.bz2{,.sig})
|
||||
provides=(libpcre{,16,32,posix,cpp}.so)
|
||||
options=(debug)
|
||||
source=("https://sourceforge.net/projects/pcre/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2"{,.sig})
|
||||
sha512sums=('91bff52eed4a2dfc3f3bfdc9c672b88e7e2ffcf3c4b121540af8a4ae8c1ce05178430aa6b8000658b9bb7b4252239357250890e20ceb84b79cdfcde05154061a'
|
||||
'SKIP')
|
||||
validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
# apply patch from the source array (should be a pacman feature)
|
||||
local filename
|
||||
for filename in "${source[@]}"; do
|
||||
if [[ "$filename" =~ \.patch$ ]]; then
|
||||
msg2 "Applying patch ${filename##*/}"
|
||||
patch -p1 -N -i "$srcdir/${filename##*/}"
|
||||
fi
|
||||
done
|
||||
:
|
||||
}
|
||||
validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel <ph10@hermes.cam.ac.uk>
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
|
@ -57,4 +44,4 @@ package() {
|
|||
install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
# vim:set sw=2 sts=-1 et:
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
|
||||
|
||||
|
|
|
@ -7,18 +7,24 @@
|
|||
|
||||
pkgname=pcre2
|
||||
pkgver=10.40
|
||||
pkgrel=02
|
||||
pkgrel=03
|
||||
pkgdesc='A library that implements Perl 5-style regular expressions. 2nd version'
|
||||
arch=('x86_64')
|
||||
url='https://www.pcre.org/'
|
||||
depends=('gcc-libs' 'readline' 'zlib' 'bzip2' 'bash')
|
||||
provides=(libpcre2-{8,16,32,posix}.so)
|
||||
#options=(debug) ### uncomment this to have the corresponding debug pkg produced
|
||||
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})
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
|
||||
# use fat LTO objects for static libraries
|
||||
CFLAGS+=" -ffat-lto-objects"
|
||||
CXXFLAGS+=" -ffat-lto-objects"
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--enable-pcre2-16 \
|
||||
--enable-pcre2-32 \
|
||||
|
@ -41,12 +47,11 @@ package() {
|
|||
install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
|
||||
#---- license gpg-key sha256sums ----
|
||||
|
||||
license=('BSD')
|
||||
|
||||
validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel
|
||||
validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel <ph10@hermes.cam.ac.uk>
|
||||
|
||||
sha256sums=(14e4b83c4783933dc17e964318e6324f7cae1bc75d8f3c79bc6969f00c159d68 # pcre2-10.40.tar.bz2
|
||||
f1d2b3fce3ca63d50b589a00402d4736e8b725a7b8d3165805b534415b846ea4) # pcre2-10.40.tar.bz2.sig
|
||||
|
|
|
@ -7,21 +7,26 @@
|
|||
|
||||
pkgname=pcre2
|
||||
pkgver=10.40
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc='A library that implements Perl 5-style regular expressions. 2nd version'
|
||||
arch=('x86_64')
|
||||
url='https://www.pcre.org/'
|
||||
license=('BSD')
|
||||
depends=('gcc-libs' 'readline' 'zlib' 'bzip2' 'bash')
|
||||
provides=(libpcre2-{8,16,32,posix}.so)
|
||||
options=(debug)
|
||||
options=(debug staticlibs)
|
||||
source=("https://github.com/PhilipHazel/pcre2/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"{,.sig})
|
||||
sha512sums=('00e7b48a6554b9127cb6fe24c5cacf72783416a9754ec88f62f73c52f46ed72c86c1869e62c91a31b2ff2cbafbbedabca44b3f1eb7670bc92f49d8401c7374e8'
|
||||
'SKIP')
|
||||
validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel
|
||||
validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel <ph10@hermes.cam.ac.uk>
|
||||
|
||||
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 \
|
||||
|
@ -45,4 +50,4 @@ package() {
|
|||
install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
# vim:set sw=2 sts=-1 et:
|
||||
|
|
Loading…
Reference in a new issue