mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
31 lines
706 B
Bash
31 lines
706 B
Bash
pkgname=c-ares
|
|
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)
|
|
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
|
|
}
|