summaryrefslogtreecommitdiff
path: root/extra/c-ares/PKGBUILD
blob: d16d11ce988c71843ebc82f1bd2cdf526f32d06f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $Id: PKGBUILD 104396 2011-01-02 08:09:16Z dgriffiths $
# Contributor: Jeff Mickey <jeff@archlinux.org>
# Contributor: Alexander Fehr <pizzapunk gmail com>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=c-ares
pkgver=1.7.4
pkgrel=1
pkgdesc='C library that performs DNS requests and name resolves asynchronously'
arch=('i686' 'x86_64')
url='http://c-ares.haxx.se/'
license=('custom')
depends=('glibc')
options=('!libtool')
source=(http://c-ares.haxx.se/${pkgname}-${pkgver}.tar.gz
        LICENSE)
md5sums=('dd71e8f07d9f3c837e12a5416d1b7f73'
         'c69f2042941b708ce3e7121424d0b7e6')

build() {
	cd ${srcdir}/${pkgname}-${pkgver}

	./configure --prefix=/usr --enable-shared || return 1
	make || return 1
}

package() {
	cd ${srcdir}/${pkgname}-${pkgver}
	make DESTDIR=${pkgdir} install || return 1

	install -Dm644 ${srcdir}/LICENSE \
		${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
}