#!/usr/bin/env bash name='nghttp2' release='1' version='1.51.0' url='https://github.com/nghttp2/nghttp2' description='Package description missing' email=' aliriza.keskin@pardus.org.tr' maintainer=' aliriza' license=('MIT') source=("https://github.com/nghttp2/nghttp2/releases/download/v1.51.0/nghttp2-${version}.tar.gz") depends=( ) makedepends=( ) md5sums=('d8c534bbdd84297afa4f6576896a3d76') arch=('x86_64') group=(system.extra python) uses=(libxml2 python) libxml2_depends=(libxml2) python_depends=(python) cd $name-$version setup(){ ./configure --prefix=/usr \ --libdir=/usr/lib64 \ --without-neverbleed \ --without-jemalloc \ --disable-examples \ --enable-static \ --enable-app \ $(use_opt libxml2 --with-libxml2 --without-libxml2) \ $(use_opt python --enable-python-bindings --disable-python-bindings) } build(){ make -j`nproc` } package(){ make install -j`nproc` mv ${DESTDIR}/usr/lib/* ${DESTDIR}/usr/lib64/ rmdir ${DESTDIR}/usr/lib/ }