summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Straube2017-03-30 11:55:24 +0200
committerMichael Straube2017-03-30 11:55:24 +0200
commit6e23616fb0e41cad3bc6d458d87ad913f84f6861 (patch)
tree8e4adc5f0b43ff97838be100b3901fc42b443b38
downloadaur-6e23616fb0e41cad3bc6d458d87ad913f84f6861.tar.gz
Initial import
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD50
2 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..012a55f387b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = libcurl-openssl-1.0
+ pkgdesc = An URL retrieval library (build against openssl-1.0)
+ pkgver = 7.53.1
+ pkgrel = 1
+ url = https://curl.haxx.se
+ arch = i686
+ arch = x86_64
+ license = MIT
+ depends = curl
+ depends = glibc
+ depends = krb5
+ depends = openssl-1.0
+ depends = libpsl
+ depends = zlib
+ depends = libssh2.so
+ options = strip
+ source = https://curl.haxx.se/download/curl-7.53.1.tar.gz
+ source = https://curl.haxx.se/download/curl-7.53.1.tar.gz.asc
+ validpgpkeys = 27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2
+ sha256sums = 64f9b7ec82372edb8eaeded0a9cfa62334d8f98abc65487da01188259392911d
+ sha256sums = SKIP
+
+pkgname = libcurl-openssl-1.0
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..14632d0107b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Michael Straube <straubem@gmx.de>
+# Contributor: Maxime Gauduin <alucryd@archlinux.org>
+# Contributor: Piotr Balcerowski <piotr@balcerowski.org>
+
+pkgname=libcurl-openssl-1.0
+pkgver=7.53.1
+pkgrel=1
+pkgdesc='An URL retrieval library (build against openssl-1.0)'
+arch=('i686' 'x86_64')
+url='https://curl.haxx.se'
+license=('MIT')
+depends=('curl' 'glibc' 'krb5' 'openssl-1.0' 'libpsl' 'zlib' 'libssh2.so')
+options=('strip')
+source=("https://curl.haxx.se/download/curl-${pkgver}.tar.gz"{,.asc})
+validpgpkeys=('27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2') # Daniel Stenberg
+sha256sums=('64f9b7ec82372edb8eaeded0a9cfa62334d8f98abc65487da01188259392911d'
+ 'SKIP')
+
+build() {
+ cd curl-${pkgver}
+
+ export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
+
+ ./configure \
+ --prefix='/usr' \
+ --disable-ldap \
+ --disable-ldaps \
+ --disable-manual \
+ --enable-ipv6 \
+ --enable-threaded-resolver \
+ --with-gssapi \
+ --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
+}
+
+package() {
+ cd curl-${pkgver}
+
+ make -C lib DESTDIR="${pkgdir}" install
+
+ mv "${pkgdir}"/usr/lib/libcurl{,-openssl-1.0}.so.4.4.0
+ rm "${pkgdir}"/usr/lib/libcurl.{a,so}*
+ ln -s libcurl-openssl-1.0.so.4.4.0 "${pkgdir}"/usr/lib/libcurl-openssl-1.0.so
+
+ install -dm 755 "${pkgdir}"/usr/share/licenses
+ ln -s curl "${pkgdir}"/usr/share/licenses/${pkgname}
+}