75 lines
2.5 KiB
Bash
75 lines
2.5 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=libuv
|
|
pkgver=1.48.0
|
|
pkgrel=02
|
|
pkgdesc="Multi-platform support library with a focus on asynchronous I/O"
|
|
url="https://github.com/libuv/libuv"
|
|
depends=('glibc' 'libnsl')
|
|
makedepends=('git' 'python-sphinx')
|
|
#source=(https://dist.libuv.org/dist/v$pkgver/libuv-v$pkgver.tar.gz{,.sign})
|
|
source=("git+https://github.com/libuv/libuv.git?signed#tag=v${pkgver}")
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
# Disable tests that fail on build.a.o (but pass locally)
|
|
sed -e '/udp_multicast_join/d' \
|
|
-e '/tcp_connect6_link_local/d' \
|
|
-i test/test-list.h
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
./autogen.sh
|
|
./configure --prefix=/usr
|
|
make
|
|
make man -C docs
|
|
}
|
|
|
|
# one test fails with 1.47.0 - comment and rerun w/ --nocheck for now
|
|
#check() {
|
|
# cd $pkgname
|
|
# make check
|
|
#}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 LICENSE \
|
|
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
install -Dm644 AUTHORS \
|
|
"$pkgdir"/usr/share/doc/$pkgname/AUTHORS
|
|
install -Dm644 README.md \
|
|
"$pkgdir"/usr/share/doc/$pkgname/README.md
|
|
install -Dm644 ChangeLog \
|
|
"$pkgdir"/usr/share/doc/$pkgname/ChangeLog
|
|
install -Dm644 docs/build/man/libuv.1 \
|
|
"$pkgdir"/usr/share/man/man1/libuv.1
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('custom')
|
|
|
|
# PGP key IDs are available from https://github.com/libuv/libuv/blob/v1.x/MAINTAINERS.md
|
|
|
|
validpgpkeys=('57353E0DBDAAA7E839B66A1AFF47D5E4AD8B4FDC' # Colin Ihrig (@cjihrig)
|
|
'AEAD0A4B686767751A0E4AEF34A25FB128246514' # Jameson Nash (@vtjnash)
|
|
'CFBB9CA9A5BEAFD70E2B3C5A79A67C55A3679C8B' # Jameson Nash (@vtjnash)
|
|
'612F0EAD9401622379DF4402F28C3C8DA33C03BE') # Santiago Gimeno
|
|
|
|
sha512sums=('016401251c3490678593e92977005f6f4da16935f84fae0ed535d06fb19893b90ee59b57136d94f7c5893feed21c03000a5269218b209186f3a87cf8c34c5b9c')
|
|
#sha256sums=(7f1db8ac368d89d1baf163bac1ea5fe5120697a73910c8ae6b2fffb3551d59fb # libuv-v1.48.0.tar.gz
|
|
# 217acde9bd3900cc4c502500fef89fffc433f41704e2daedaf3676af4d8591dd) # libuv-v1.48.0.tar.gz.sign
|
|
|
|
## 0f619b8e0fec0df4b33c6a9bbcf785dfe819732ee9615f6bb7e7a9771515b3fe libuv-1.48.0-02-x86_64.pkg.tar.lz
|
|
|