desktop/c-ares/PKGBUILD

31 lines
706 B
Bash
Raw Permalink Normal View History

pkgname=c-ares
2016-02-20 07:08:56 +08:00
pkgver=1.11.0
pkgrel=1
pkgdesc='C library that performs DNS requests and name resolves asynchronously.'
arch=('x86_64')
url='http://c-ares.haxx.se/'
license=('MIT')
depends=('glibc')
source=(http://c-ares.haxx.se/download/$pkgname-$pkgver.tar.gz
license.txt)
2016-02-20 07:08:56 +08:00
sha1sums=('8c20b2680099ac73861a780c731edd59e010383a'
'acc86c062e367c0d98b6b0b6dc811b5691e1fd71')
build() {
cd $srcdir/$pkgname-$pkgver
./configure \
--enable-shared \
--prefix=/usr
make
}
package() {
cd $srcdir/$pkgname-$pkgver
# Main Installation.
make DESTDIR=$pkgdir install
# License.
install -Dm644 $srcdir/license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt || return 1
}