diff options
Diffstat (limited to 'main/curl/APKBUILD')
-rw-r--r-- | main/curl/APKBUILD | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/main/curl/APKBUILD b/main/curl/APKBUILD index 4962d9eba8..e34df81749 100644 --- a/main/curl/APKBUILD +++ b/main/curl/APKBUILD @@ -1,20 +1,20 @@ +# Contributor: Valery Kartel <valery.kartel@gmail.com> # Contributor: Ćukasz Jendrysik <scadu@yandex.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=curl pkgver=7.46.0 -pkgrel=1 +pkgrel=2 pkgdesc="An URL retrival utility and library" url="http://curl.haxx.se" arch="all" license="MIT" depends="ca-certificates" depends_dev="zlib-dev openssl-dev libssh2-dev" -makedepends="groff $depends_dev perl" -source="http://curl.haxx.se/download/curl-$pkgver.tar.bz2" -subpackages="$pkgname-doc $pkgname-dev" - -_builddir="$srcdir/$pkgname-$pkgver" +makedepends="$depends_dev groff perl" +source="http://curl.haxx.se/download/$pkgname-$pkgver.tar.bz2" +subpackages="$pkgname-doc $pkgname-dev libcurl $pkgname-zsh-completion:zshcomp" +_builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$_builddir" @@ -24,17 +24,19 @@ prepare() { esac done } + build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --mandir=/usr/share/man \ - --without-libidn \ --enable-ipv6 \ --enable-unix-sockets \ + --without-libidn \ + --disable-static \ --disable-ldap \ + --with-pic \ || return 1 make || return 1 } @@ -44,6 +46,21 @@ package() { make DESTDIR="$pkgdir" install || return 1 } +libcurl() { + pkgdesc="The multiprotocol file transfer library" + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/lib "$subpkgdir"/usr +} + +zshcomp() { + pkgdesc="Zsh completion for $pkgname" + arch="noarch" + depends="" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + mkdir -p "$subpkgdir"/usr/share + mv "$pkgdir"/usr/share/zsh "$subpkgdir"/usr/share +} + md5sums="9979f989a2a9930d10f1b3deeabc2148 curl-7.46.0.tar.bz2" sha256sums="b7d726cdd8ed4b6db0fa1b474a3c59ebbbe4dcd4c61ac5e7ade0e0270d3195ad curl-7.46.0.tar.bz2" sha512sums="ff47216a2b4a2d14a2e98e0e87867897a9bf059c58d2d73aa47a69ccd94977367e2de15bea641abfb00e236a8b016ee869675c2cc702f7919da5fe612bd8b5e1 curl-7.46.0.tar.bz2" |