From 7e3c4956d91ec11a0ac8e51d22b39278b6ce001a Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 10 Jan 2019 15:36:34 -0600 Subject: [PATCH] New package: python-hyper-h2-3.0.1 --- srcpkgs/python-hyper-h2/template | 30 ++++++++++++++++++++++++++++++ srcpkgs/python3-hyper-h2 | 1 + 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/python-hyper-h2/template create mode 120000 srcpkgs/python3-hyper-h2 diff --git a/srcpkgs/python-hyper-h2/template b/srcpkgs/python-hyper-h2/template new file mode 100644 index 00000000000..69fe512fca6 --- /dev/null +++ b/srcpkgs/python-hyper-h2/template @@ -0,0 +1,30 @@ +# Template file for 'python-hyper-h2' +pkgname=python-hyper-h2 +version=3.0.1 +revision=1 +noarch=yes +wrksrc="hyper-h2-${version}" +build_style=python-module +pycompile_module="h2" +hostmakedepends="python-setuptools python3-setuptools" +depends="python python-hpack python-hyperframe" +short_desc="HTTP/2 State-Machine based protocol implementation(Python2)" +maintainer="Nathan Owens " +license="MIT" +homepage="https://github.com/python-hyper/hyper-h2" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=fb77d22e844ea4a81ac9305249f4fcf73d06bf7162687980d9a9d20a63133e6e + +post_install() { + vlicense LICENSE +} + +python3-hyper-h2_package() { + noarch=yes + pycompile_module="h2" + short_desc="${short_desc/Python2/Python3}" + depends="${depends/python/python3}" + pkg_install() { + vmove "usr/lib/python3*" + } +} diff --git a/srcpkgs/python3-hyper-h2 b/srcpkgs/python3-hyper-h2 new file mode 120000 index 00000000000..3e2cb726599 --- /dev/null +++ b/srcpkgs/python3-hyper-h2 @@ -0,0 +1 @@ +python-hyper-h2 \ No newline at end of file