jobcore/libnghttp3/PKGBUILD

51 lines
1.3 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/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libnghttp3
pkgver=1.2.0
pkgrel=01
pkgdesc="HTTP/3 library written in C"
url='https://github.com/ngtcp2/nghttp3'
provides=('libnghttp3.so')
source=("https://github.com/ngtcp2/nghttp3/releases/download/v${pkgver}/nghttp3-${pkgver}.tar.xz"{,.asc})
prepare() {
cd nghttp3-${pkgver}
autoreconf -i
}
build() {
cd nghttp3-${pkgver}
./configure \
--prefix=/usr
make
}
check() {
cd nghttp3-${pkgver}
make check
}
package() {
cd nghttp3-${pkgver}/lib
make DESTDIR="${pkgdir}" install
install -Dm644 ../COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('MIT')
validpgpkeys=('F4F3B91474D1EB29889BD0EF7E8403D5D673C366') # Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
sha256sums=(d2e216bae7bd7362f850922e4237a5caa204853b3594b22adccab4c1e1c1d1aa # nghttp3-1.2.0.tar.xz
eaac43b6e53240764728e215ac3335a5064717f8ca0776614097ca54122f9cf4) # nghttp3-1.2.0.tar.xz.asc
## ef7541000230eb5f0cb820e0cf407cb51c2491e944d4042e1e78abac65f6654d libnghttp3-1.2.0-01-x86_64.pkg.tar.lz