This repository has been archived by the owner on May 20, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgpkg: c-ares 1.17.1-1: Upgrade to 1.17.1.
Switch to correct license (MIT). Remove custom license from repo. Switch to cmake based build. Add libcares.so to provides. Install docs. Update maintainer info. git-svn-id: file:///srv/repos/svn-packages/svn@401446 eb2447ed-0c53-47e4-bac8-5bc4a241df78
- Loading branch information
Showing
2 changed files
with
25 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,40 @@ | ||
# Maintainer: Dave Reisner <dreisner@archlinux.org> | ||
# Maintainer: David Runge <dvzrv@archlinux.org> | ||
# Contributor: Dave Reisner <dreisner@archlinux.org> | ||
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us> | ||
# Contributor: Jeff Mickey <jeff@archlinux.org> | ||
# Contributor: Alexander Fehr <pizzapunk gmail com> | ||
|
||
pkgname=c-ares | ||
pkgver=1.16.1 | ||
pkgrel=2 | ||
pkgdesc='C library that performs DNS requests and name resolves asynchronously' | ||
pkgver=1.17.1 | ||
pkgrel=1 | ||
pkgdesc="A C library for asynchronous DNS requests" | ||
arch=('x86_64') | ||
url='https://c-ares.haxx.se/' | ||
license=('custom') | ||
url="https://c-ares.haxx.se/" | ||
license=('MIT') | ||
depends=('glibc') | ||
source=("https://c-ares.haxx.se/download/$pkgname-$pkgver.tar.gz"{,.asc} | ||
'LICENSE') | ||
sha512sums=('4ac2a5d5c6da74eb1d6155c4eadc7127ab1b53a8d13caec41bd6172db5417a79f3ab022e77ba37d8b13da6893d7ced5fd8baf5cc3950a4154b4de8743ad31471' | ||
'SKIP' | ||
'55e8607392c5f82ed85e3580fa632dfdc2dcd0b1a5e918dc61d00532c15c11ecb709f6007b65805c1fbe8fcd21ee794c9e4a9638c97ac1f4960b2654010a4d0a') | ||
validpgpkeys=('27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2' # Daniel Stenberg | ||
'914C533DF9B2ADA2204F586D78E11C6B279D5C91') # Daniel Stenberg | ||
makedepends=('cmake') | ||
provides=('libcares.so') | ||
source=("https://github.com/${pkgname}/${pkgname}/releases/download/${pkgname//-}-${pkgver//./_}/${pkgname}-${pkgver}.tar.gz"{,.asc}) | ||
sha512sums=('b11887bcc9274d368088e1a8b6aca62414f20675cf0bc58e948f54fa04c327c39dd23cefe7509eec6397db14b550a3f6b77f5c18b3d735b3eef48ce2da1dcd00' | ||
'SKIP') | ||
b2sums=('31dac21ecae231e2a201dc1ba954c1a0663a06f93eb8e7e033ca3c6d385f53e07af0b04854739f1ee8a7f0693f67f620143e152ef092b49342c62279a0480905' | ||
'SKIP') | ||
validpgpkeys=('27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2') # Daniel Stenberg <daniel@haxx.se> | ||
|
||
build() { | ||
cd "$pkgname-$pkgver" | ||
|
||
./configure --prefix=/usr --enable-shared | ||
make | ||
cmake -DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DCMAKE_BUILD_TYPE='None' \ | ||
-Wno-dev \ | ||
-B build \ | ||
-S . | ||
make VERBOSE=1 -C build | ||
} | ||
|
||
package() { | ||
cd "$pkgname-$pkgver" | ||
|
||
make DESTDIR="$pkgdir" install | ||
install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | ||
make DESTDIR="${pkgdir}" install -C build | ||
install -vDm 644 "LICENSE.md" -t "${pkgdir}/usr/share/licenses/${pkgname}/" | ||
install -vDm 644 {AUTHORS,CHANGES,{CONTRIBUTING,README}.md,RELEASE-NOTES} \ | ||
-t "${pkgdir}/usr/share/doc/${pkgname}/" | ||
} |