From cc59aba20a13cdae5f8ec010c44e990c16707569 Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Mon, 1 Feb 2021 11:00:13 +0300 Subject: [PATCH 1/3] New package: python3-dephell-0.8.3 --- srcpkgs/python3-dephell/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/python3-dephell/template diff --git a/srcpkgs/python3-dephell/template b/srcpkgs/python3-dephell/template new file mode 100644 index 00000000000..4e1924586b4 --- /dev/null +++ b/srcpkgs/python3-dephell/template @@ -0,0 +1,21 @@ +# Template file for 'python3-dephell' +pkgname=python3-dephell +version=0.8.3 +revision=1 +wrksrc=dephell-v.${version} +build_style=python3-module +hostmakedepends="python3-setuptools" +short_desc="Python project management" +maintainer="FollieHiyuki " +license="MIT" +homepage="https://dephell.org/" +distfiles="https://github.com/dephell/dephell/archive/v.${version}.tar.gz" +checksum=d37fba0fb163831ba47bf94d140a56fa175251f1b80deba78ced4be10d92c8ae + +do_check() { + : +} + +post_install() { + vlicense LICENSE +} From 3940c60a78015490078388074cb2bf0cad006759 Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Mon, 1 Feb 2021 11:13:44 +0300 Subject: [PATCH 2/3] New package: maturin-0.9.0 --- srcpkgs/maturin/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/maturin/template diff --git a/srcpkgs/maturin/template b/srcpkgs/maturin/template new file mode 100644 index 00000000000..6eeda8a0ef5 --- /dev/null +++ b/srcpkgs/maturin/template @@ -0,0 +1,20 @@ +# Template file for 'maturin' +pkgname=maturin +version=0.9.0 +revision=1 +build_style=cargo +hostmakedepends="python3-setuptools python3-toml" +short_desc="Build and publish crates as python packages" +maintainer="FollieHiyuki " +license="Apache-2.0, MIT" +homepage="https://github.com/PyO3/maturin" +distfiles="https://github.com/PyO3/maturin/archive/v${version}.tar.gz" +checksum=22e8082a743e1dc11f5909b596f9053deb7dc1a56336003677381ba02cf67da8 + +do_check() { + : +} + +post_install() { + vlicense license-mit +} From 8b05410a180eaba6068aa3f9e33f3ed760a4c37f Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Mon, 1 Feb 2021 13:50:32 +0300 Subject: [PATCH 3/3] New package: python3-adblock-0.4.1 --- srcpkgs/python3-adblock/template | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 srcpkgs/python3-adblock/template diff --git a/srcpkgs/python3-adblock/template b/srcpkgs/python3-adblock/template new file mode 100644 index 00000000000..86e465c221f --- /dev/null +++ b/srcpkgs/python3-adblock/template @@ -0,0 +1,40 @@ +# Template file for 'python3-adblock' +pkgname=python3-adblock +version=0.4.1 +revision=1 +wrksrc=python-adblock-${version} +build_style=cargo +hostmakedepends="python3-setuptools python3-dephell python3-pip maturin pkg-config" +makedepends="libressl-devel" +depends="python3" +short_desc="Python wrapper for Brave's Rust adblocking library" +maintainer="FollieHiyuki " +license="Apache-2.0, MIT" +homepage="https://github.com/ArniDagur/python-adblock" +distfiles="https://github.com/ArniDagur/python-adblock/archive/${version}.tar.gz" +checksum=3a4250421890dc330ea6bfc05469a761f76f471dc690e69884acc33121685dd0 + +pre_build() { + if [ "$XBPS_TARGET_LIBC" = musl ] + then + RUSTFLAGS="-C target-feature=-crt-static" maturin build --release --strip --manylinux off --target ${RUST_TARGET} + else + maturin build --release --strip --target ${RUST_TARGET} + fi +} + +do_check() { + : +} + +do_install() { + vinstall target/${RUST_TARGET}/release/libadblock.so 755 /usr/lib/ libadblock.so + PIP_CONFIG_FILE='/dev/null' pip install --isolated \ + --root=${DESTDIR} \ + --ignore-installed \ + --no-deps target/wheels/*.whl +} + +post_install() { + vlicense LICENSE-MIT +}