Permalink
Browse files

curl-git: add bogus version provide

  • Loading branch information...
1 parent 45edc83 commit 3b5969ddc1319e174b2926b8ff040d6e753f0983 @falconindy committed Aug 6, 2012
Showing with 9 additions and 8 deletions.
  1. +9 −8 curl-git/PKGBUILD
View
17 curl-git/PKGBUILD
@@ -1,28 +1,27 @@
# Maintainer: Dave Reisner <d@falconindy.com>
pkgname=curl-git
-pkgver=20110223
+pkgver=20120419
pkgrel=1
pkgdesc="Curl is a tool and libcurl is a library for transferring data with URL syntax."
arch=('i686' 'x86_64')
url="http://curl.haxx.se/"
license=('MIT')
depends=('zlib' 'libssh2' 'openssl' 'libidn' 'bash' 'ca-certificates')
makedepends=('git')
-provides=('curl')
+provides=('curl=999')
conflicts=('curl')
options=('!libtool')
source=('curlbuild.h')
md5sums=('751bd433ede935c8fae727377625a8ae')
-[[ $CARCH == "x86_64" ]] && _curlbuild=curlbuild-64.h
-[[ $CARCH == "i686" ]] && _curlbuild=curlbuild-32.h
+[[ $CARCH = "x86_64" ]] && _curlbuild=curlbuild-64.h
+[[ $CARCH = "i686" ]] && _curlbuild=curlbuild-32.h
_gitroot="git://github.com/bagder/curl.git"
_gitname="curl"
build() {
- cd "$srcdir"
msg "Connecting to GIT server...."
if [[ -d $_gitname ]] ; then
@@ -56,11 +55,13 @@ build() {
}
package() {
- cd "$srcdir/$_gitname-build"
+ cd "$_gitname-build"
+
+ make DESTDIR="$pkgdir" install
- make DESTDIR=${pkgdir} install
- install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
install -Dm644 docs/libcurl/libcurl.m4 $pkgdir/usr/share/aclocal/libcurl.m4
mv "$pkgdir/usr/include/curl/curlbuild.h" "$pkgdir/usr/include/curl/$_curlbuild"
install -m 644 $srcdir/curlbuild.h "$pkgdir/usr/include/curl/curlbuild.h"
+
+ install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
}

0 comments on commit 3b5969d

Please sign in to comment.