archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libuv / repos / extra-x86_64 / PKGBUILD
bloba4b9c7d14bee03f4b11314866f50ed3a5776400a
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
4 pkgname=libuv
5 pkgver=1.42.0
6 pkgrel=1
7 pkgdesc="Multi-platform support library with a focus on asynchronous I/O"
8 arch=('x86_64')
9 url="https://github.com/libuv/libuv"
10 license=('custom')
11 depends=('glibc' 'libnsl')
12 makedepends=('python-sphinx')
13 source=(https://dist.libuv.org/dist/v$pkgver/libuv-v$pkgver.tar.gz{,.sign})
14 sha512sums=('cc8ca797ec6e02fff7d4998fd5a509373ae6c674ff0d57960fef3418f59d3b93a655f52913ee5f712e32e3980b29df6315685c8b506790295d97c7c1f94f3425'
15             'SKIP')
16 # PGP key IDs are available from https://github.com/libuv/libuv/blob/v1.x/MAINTAINERS.md
17 validpgpkeys=('57353E0DBDAAA7E839B66A1AFF47D5E4AD8B4FDC'  # Colin Ihrig (@cjihrig)
18               'AEAD0A4B686767751A0E4AEF34A25FB128246514') # Jameson Nash (@vtjnash)
20 build() {
21     cd $pkgname-v$pkgver
22     ./autogen.sh
23     ./configure --prefix=/usr
24     make
25     make man -C docs
28 check() {
29     cd $pkgname-v$pkgver
30     make check
33 package() {
34     cd $pkgname-v$pkgver
36     make DESTDIR="$pkgdir" install
38     install -Dm644 LICENSE \
39         "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
40     install -Dm644 AUTHORS \
41         "$pkgdir"/usr/share/doc/$pkgname/AUTHORS
42     install -Dm644 README.md \
43         "$pkgdir"/usr/share/doc/$pkgname/README.md
44     install -Dm644 ChangeLog \
45         "$pkgdir"/usr/share/doc/$pkgname/ChangeLog
46     install -Dm644 docs/build/man/libuv.1 \
47         "$pkgdir"/usr/share/man/man1/libuv.1