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

Levente Polyak anthraxx at gemini.archlinux.org
Tue Aug 30 18:33:49 UTC 2022


    Date: Tuesday, August 30, 2022 @ 18:33:49
  Author: anthraxx
Revision: 1288922

archrelease: copy trunk to community-x86_64

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

----------+
 PKGBUILD |   93 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 51 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-30 18:33:44 UTC (rev 1288921)
+++ PKGBUILD	2022-08-30 18:33:49 UTC (rev 1288922)
@@ -1,42 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: arch3y <arch3y[at]archstrike[dot]org>
-
-_gitname=yara-python
-pkgname=python-yara
-pkgver=4.2.0
-_gitcommit=0a8659d68ba486286b6d5b7c7f48d171beb78e03
-pkgrel=1
-pkgdesc='Tool aimed at helping malware researchers to identify and classify malware samples'
-url='https://github.com/VirusTotal/yara-python'
-arch=('x86_64')
-license=('Apache')
-depends=('python' 'yara' 'libyara.so' 'glibc')
-makedepends=('git' 'python-setuptools')
-source=(${pkgname}::git+"https://github.com/VirusTotal/${_gitname}#commit=${_gitcommit}")
-sha512sums=('SKIP')
-
-pkgver() {
-  cd ${pkgname}
-  git describe --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
-}
-
-build() {
-  cd ${pkgname}
-  python setup.py build --dynamic-linking
-}
-
-check() {
-  cd ${pkgname}
-  local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
-  PYTHONPATH="build/lib.linux-${CARCH}-${PYTHONVERSION}" \
-    python tests.py
-}
-
-package() {
-  cd ${pkgname}
-  python setup.py install --root="${pkgdir}" -O1 --skip-build
-  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-  ln -s /usr/share/doc/yara/docs "${pkgdir}/usr/share/doc/${pkgname}/docs"
-}
-
-# vim: ts=2 sw=2 et:

Copied: python-yara/repos/community-x86_64/PKGBUILD (from rev 1288921, python-yara/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-30 18:33:49 UTC (rev 1288922)
@@ -0,0 +1,51 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: arch3y <arch3y[at]archstrike[dot]org>
+
+_gitname=yara-python
+pkgname=python-yara
+pkgver=4.2.3
+_gitcommit=8106b84fa967bcd2fff4f5a40e558c36bb8d54e8
+pkgrel=1
+pkgdesc='Tool aimed at helping malware researchers to identify and classify malware samples'
+url='https://github.com/VirusTotal/yara-python'
+arch=('x86_64')
+license=('Apache')
+depends=('python' 'yara' 'libyara.so' 'glibc')
+makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
+checkdepends=('python-pytest')
+source=(${pkgname}::git+"https://github.com/VirusTotal/${_gitname}#commit=${_gitcommit}")
+sha512sums=('SKIP')
+
+pkgver() {
+  cd ${pkgname}
+  git describe --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+  cd ${pkgname}
+  mkdir -p tests
+  mv tests.py tests
+}
+
+build() {
+  cd ${pkgname}
+  python -m build --wheel --no-isolation \
+    -C--global-option=build_ext \
+    -C--global-option=--dynamic-linking
+}
+
+check() {
+  cd ${pkgname}/tests
+  local PYTHONVERSION="$(python -c 'import sys; print("{}{}".format(sys.version_info.major, sys.version_info.minor))')"
+  PYTHONPATH="$PWD/../build/lib.linux-${CARCH}-cpython-${PYTHONVERSION}" \
+    pytest tests.py
+}
+
+package() {
+  cd ${pkgname}
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  ln -s /usr/share/doc/yara/docs "${pkgdir}/usr/share/doc/${pkgname}/docs"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list