diff options
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 25 insertions, 10 deletions
@@ -1,16 +1,16 @@ pkgbase = quiche pkgdesc = an implementation of the QUIC transport protocol and HTTP/2 as specified by the IETF - pkgver = 0.20.1 + pkgver = 0.21.0 pkgrel = 1 url = https://github.com/cloudflare/quiche arch = x86_64 license = custom:BSD makedepends = cmake - makedepends = rust + makedepends = rustup depends = gcc-libs options = !lto - source = https://github.com/cloudflare/quiche/archive/0.20.1.tar.gz + source = https://github.com/cloudflare/quiche/archive/0.21.0.tar.gz validpgpkeys = 8657ABB260F056B1E5190839D9C4D26D0E604491 - sha256sums = 9c460d8ecf6c80c06bf9b42f91201ef33f912e2615a871ff2d0e50197b901c71 + sha256sums = ca0f953c34e1549930cfd44deac5e8a6d9e6c3c3df01e5a2d9bcf6d07246b6a4 pkgname = quiche @@ -2,22 +2,37 @@ # Previous Maintainer: Kasei Wang <kasei@kasei.im> pkgname=quiche -pkgver=0.20.1 +pkgver=0.21.0 pkgrel=1 pkgdesc='an implementation of the QUIC transport protocol and HTTP/2 as specified by the IETF' arch=('x86_64') url='https://github.com/cloudflare/quiche' license=('custom:BSD') depends=('gcc-libs') -makedepends=('cmake' 'rust') +makedepends=('cmake' 'rustup') options=(!'lto') source=("https://github.com/cloudflare/$pkgname/archive/$pkgver.tar.gz") -sha256sums=('9c460d8ecf6c80c06bf9b42f91201ef33f912e2615a871ff2d0e50197b901c71') +sha256sums=('ca0f953c34e1549930cfd44deac5e8a6d9e6c3c3df01e5a2d9bcf6d07246b6a4') validpgpkeys=('8657ABB260F056B1E5190839D9C4D26D0E604491') +prepare() { + cd "$srcdir/$pkgname-$pkgver/quiche" + export RUSTUP_TOOLCHAIN=stable + cargo update + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" +} + build() { cd "$srcdir/$pkgname-$pkgver/quiche" - cargo build --release --no-default-features --features ffi,pkg-config-meta,qlog,boringssl-boring-crate + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --no-default-features --features ffi,pkg-config-meta,qlog,boringssl-boring-crate +} + +check() { + export RUSTUP_TOOLCHAIN=stable + cd "$srcdir/$pkgname-$pkgver/quiche" + cargo test --frozen --no-default-features --features ffi,pkg-config-meta,qlog,boringssl-boring-crate } package() { @@ -28,8 +43,8 @@ package() { mkdir -p $pkgdir/usr/share/licenses/quiche install -Dm644 quiche/include/quiche.h $pkgdir/usr/include - install -Dm644 target/release/libquiche.a $pkgdir/usr/lib - install -Dm755 target/release/libquiche.so $pkgdir/usr/lib + install -Dm644 quiche/target/release/libquiche.a $pkgdir/usr/lib + install -Dm755 quiche/target/release/libquiche.so $pkgdir/usr/lib install -Dm644 /dev/stdin $pkgdir/usr/lib/pkgconfig/quiche.pc <<PC # quiche |