diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 20 insertions, 16 deletions
@@ -5,17 +5,20 @@ # Contributor: Piotr Balcerowski <piotr@balcerowski.org> pkgname=libcurl-openssl-1.0 -pkgver=7.60.0 +pkgver=7.79.1 pkgrel=1 pkgdesc="An URL retrieval library (without versioned symbols, built against openssl-1.0)" -arch=('x86_64') +arch=('aarch64' 'x86_64') url="https://curl.haxx.se" license=('MIT') -depends=('ca-certificates' 'curl' 'krb5' 'libssh2' 'openssl-1.0' 'zlib' 'libpsl') +depends=('curl' 'glibc' 'krb5' 'libssh2' 'openssl-1.0' 'libpsl' 'zlib' + 'libssh2.so') provides=('libcurl-openssl-1.0.so') options=('strip') -source=("https://curl.haxx.se/download/curl-${pkgver}.tar.gz") -sha512sums=('f25c8d79be87bfbcae93cd200b319f664efd62aea8f1a94bb441407a9e1489bd935943cfd1347f3b252f94b9a0286da8aeb04b407a2ba95ebfa717dff80e891b') +source=("https://curl.haxx.se/download/curl-${pkgver}.tar.gz"{,.asc}) +sha512sums=('0f9546285bef741f69d25f20bcd5b961d29fc88084d9f3ebe0c66a6674f4c69a531b41f8e3cc57474f528abdd90aa7981e653c339c5e8383353c36a82efaafc4' + 'SKIP') +validpgpkeys=('27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2') # Daniel Stenberg build() { cd curl-${pkgver} @@ -23,7 +26,7 @@ build() { export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig ./configure \ - --prefix=/usr \ + --prefix='/usr' \ --disable-ldap \ --disable-ldaps \ --disable-manual \ @@ -31,8 +34,10 @@ build() { --enable-ipv6 \ --enable-threaded-resolver \ --with-gssapi \ - --with-random=/dev/urandom \ - --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt + --with-libssh2 \ + --with-openssl \ + --with-random='/dev/urandom' \ + --with-ca-bundle='/etc/ssl/certs/ca-certificates.crt' sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make -C lib @@ -43,15 +48,14 @@ package() { make -C lib DESTDIR="${pkgdir}" install - mv "${pkgdir}"/usr/lib/libcurl{,-openssl-1.0}.so.4.5.0 + mv "${pkgdir}"/usr/lib/libcurl{,-openssl-1.0}.so.4.7.0 rm "${pkgdir}"/usr/lib/libcurl.{a,so}* - ln -s libcurl-openssl-1.0.so.4.5.0 "${pkgdir}"/usr/lib/libcurl-openssl-1.0.so - - install -d "${pkgdir}"/usr/lib/libcurl-openssl-1.0 - for _i in so so.4 so.4.5.0; do - ln -s ../libcurl-openssl-1.0.so.4.5.0 "${pkgdir}"/usr/lib/libcurl-openssl-1.0/libcurl.${_i} + for version in 3 4 4.0.0 4.1.0 4.2.0 4.3.0 4.4.0 4.5.0 4.6.0; do + ln -s libcurl-openssl-1.0.so.4.7.0 "${pkgdir}"/usr/lib/libcurl-openssl-1.0.so.${version} done - install -dm 755 "${pkgdir}"/usr/share/licenses - ln -s curl "${pkgdir}"/usr/share/licenses/${pkgname} + # license + install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING } + +# vim: ts=2 sw=2 et: |