SHARE
TWEET

PKGBUILD

a guest Oct 11th, 2019 88 in 95 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Kasei Wang <kasei@kasei.im>
  2.  
  3. pkgname=quiche
  4. pkgver=0.1.0
  5. pkgrel=2
  6. pkgdesc='an implementation of the QUIC transport protocol and HTTP/3 as specified by the IETF'
  7. arch=('x86_64')
  8. url='https://github.com/cloudflare/quiche'
  9. license=('custom:BSD')
  10. depends=('gcc-libs')
  11. makedepends=('cmake' 'git' 'go' 'rust')
  12. source=("https://github.com/cloudflare/$pkgname/archive/$pkgver.tar.gz"
  13.                 "git+https://boringssl.googlesource.com/boringssl#branch=chromium-stable")
  14. sha256sums=('6a369615005b8f1e361bfaca5ec07989443ab1b62af60a07ac41f63ff4b7d1af'
  15.             'SKIP')
  16. validpgpkeys=('8657ABB260F056B1E5190839D9C4D26D0E604491')
  17.  
  18. prepare() {
  19.         cd "$srcdir/$pkgname-$pkgver"
  20.         rm -rf deps/boringssl
  21.         ln -s $srcdir/boringssl deps/boringssl
  22. }
  23.  
  24. build() {
  25.         cd "$srcdir/$pkgname-$pkgver"
  26.         cargo build --release
  27. }
  28.  
  29. package() {
  30.         cd "$srcdir/$pkgname-$pkgver"
  31.         mkdir -p $pkgdir/usr/include
  32.         mkdir -p $pkgdir/usr/lib
  33.         mkdir -p $pkgdir/usr/lib/pkgconfig
  34.         mkdir -p $pkgdir/usr/share/licenses/quiche
  35.  
  36.         target=$HOME/.cache/rust-target
  37.         install include/quiche.h $pkgdir/usr/include
  38.         install $target/release/libquiche.a $pkgdir/usr/lib
  39.         install $target/release/libquiche.so $pkgdir/usr/lib
  40.         install /dev/stdin $pkgdir/usr/lib/pkgconfig/quiche.pc <<PC
  41. # quiche
  42.  
  43. Name: quiche
  44. Description: quiche library
  45. URL: https://github.com/cloudflare/quiche
  46. Version: $pkgver
  47. Libs: -lquiche
  48. PC
  49.         install COPYING $pkgdir/usr/share/licenses/quiche
  50. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top