jobextra/http-parser/PKGBUILD

46 lines
1.1 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=http-parser
pkgver=2.9.4
pkgrel=01
pkgdesc="Parser for HTTP Request/Response written in C"
url="https://github.com/nodejs/http-parser"
depends=('glibc')
source=($pkgname-$pkgver.tar.gz::"${url}/archive/v$pkgver.tar.gz")
prepare() {
sed -i 's|-Werror||' $pkgname-$pkgver/Makefile
}
build() {
cd $pkgname-$pkgver
make library
}
check() {
cd $pkgname-$pkgver
make test
}
package() {
cd $pkgname-$pkgver
make PREFIX="$pkgdir/usr" install
install -Dm644 LICENSE-MIT -t "$pkgdir"/usr/share/licenses/$pkgname/
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('MIT')
sha256sums=(467b9e30fd0979ee301065e70f637d525c28193449e1b13fbcb1b1fab3ad224f) # http-parser-2.9.4.tar.gz
## cdc9983efd3270853ab8f79fe36826f2eedd400499bd26bd3b9722f0d2e36902 http-parser-2.9.4-01-x86_64.pkg.tar.lz