[arch-commits] Commit in python-adblock/repos/community-x86_64 (PKGBUILD PKGBUILD)

Morten Linderud foxboron at archlinux.org
Thu Jan 28 19:55:35 UTC 2021


    Date: Thursday, January 28, 2021 @ 19:55:35
  Author: foxboron
Revision: 833444

archrelease: copy trunk to community-x86_64

Added:
  python-adblock/repos/community-x86_64/PKGBUILD
    (from rev 833443, python-adblock/trunk/PKGBUILD)
Deleted:
  python-adblock/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   94 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 47 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-28 19:55:28 UTC (rev 833443)
+++ PKGBUILD	2021-01-28 19:55:35 UTC (rev 833444)
@@ -1,47 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-
-pkgname=python-adblock
-pkgver=0.4.0
-pkgrel=1
-pkgdesc="Brave's adblock library in Python"
-arch=("x86_64")
-url="https://github.com/ArniDagur/python-adblock"
-license=("MIT")
-depends=()
-makedepends=("python-setuptools" "python-dephell" "rust" "maturin")
-checkdepends=("python-pytest")
-source=("$pkgname-$pkgver.tar.gz::https://github.com/ArniDagur/${pkgname}/archive/${pkgver}.tar.gz")
-sha256sums=('49cf5bef7a637b9c08ddf6d2f68d11b522f341d2667ea9eb9ef584a59d130a92')
-
-export PYTHONHASHSEED=0
-
-build() {
-    cd $pkgname-$pkgver
-    maturin build --release --strip
-    cargo build --release --locked --all-features --target-dir=target
-}
-
-check() {
-  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
-  cd "$pkgname-$pkgver"
-  mkdir -vp testdir
-  export PIP_CONFIG_FILE=/dev/null
-  pip install --isolated \
-              --root="testdir" \
-              --ignore-installed \
-              --no-deps target/wheels/*.whl
-  export PYTHONPATH="testdir/usr/lib/python${python_version}/site-packages:${PYTHONPATH}"
-  pytest -v -k 'not test_version_numbers_all_same'
-}
-
-package() {
-    cd $pkgname-$pkgver
-    install -Dm755 target/release/libadblock.so -t "$pkgdir/usr/lib"
-    export PIP_CONFIG_FILE='/dev/null'
-    pip install --isolated \
-              --root="$pkgdir" \
-              --ignore-installed \
-              --no-deps target/wheels/*.whl
-    install -Dm0644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
-}
-

Copied: python-adblock/repos/community-x86_64/PKGBUILD (from rev 833443, python-adblock/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-01-28 19:55:35 UTC (rev 833444)
@@ -0,0 +1,47 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=python-adblock
+pkgver=0.4.1
+pkgrel=1
+pkgdesc="Brave's adblock library in Python"
+arch=("x86_64")
+url="https://github.com/ArniDagur/python-adblock"
+license=("MIT")
+depends=()
+makedepends=("python-setuptools" "python-dephell" "rust" "maturin")
+checkdepends=("python-pytest")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ArniDagur/${pkgname}/archive/${pkgver}.tar.gz")
+sha256sums=('3a4250421890dc330ea6bfc05469a761f76f471dc690e69884acc33121685dd0')
+
+export PYTHONHASHSEED=0
+
+build() {
+    cd $pkgname-$pkgver
+    maturin build --release --strip
+    cargo build --release --locked --all-features --target-dir=target
+}
+
+check() {
+  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+  cd "$pkgname-$pkgver"
+  mkdir -vp testdir
+  export PIP_CONFIG_FILE=/dev/null
+  pip install --isolated \
+              --root="testdir" \
+              --ignore-installed \
+              --no-deps target/wheels/*.whl
+  export PYTHONPATH="testdir/usr/lib/python${python_version}/site-packages:${PYTHONPATH}"
+  pytest -v -k 'not test_version_numbers_all_same'
+}
+
+package() {
+    cd $pkgname-$pkgver
+    install -Dm755 target/release/libadblock.so -t "$pkgdir/usr/lib"
+    export PIP_CONFIG_FILE='/dev/null'
+    pip install --isolated \
+              --root="$pkgdir" \
+              --ignore-installed \
+              --no-deps target/wheels/*.whl
+    install -Dm0644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
+}
+



More information about the arch-commits mailing list