[arch-commits] Commit in python-yara/repos/community-x86_64 (PKGBUILD PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Sun Mar 28 00:14:59 UTC 2021
Date: Sunday, March 28, 2021 @ 00:14:59
Author: anthraxx
Revision: 905852
archrelease: copy trunk to community-x86_64
Added:
python-yara/repos/community-x86_64/PKGBUILD
(from rev 905851, python-yara/trunk/PKGBUILD)
Deleted:
python-yara/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 113 ++++++++++++++++++++++---------------------------------------
1 file changed, 42 insertions(+), 71 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-03-28 00:14:55 UTC (rev 905851)
+++ PKGBUILD 2021-03-28 00:14:59 UTC (rev 905852)
@@ -1,71 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: arch3y <arch3y[at]archstrike[dot]org>
-
-_gitname=yara-python
-pkgbase=python-yara
-pkgname=('python-yara' 'python2-yara')
-pkgver=4.0.5
-_gitcommit=83c005eda9b3dbe08581515e8db570ad7dcfee18
-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')
-makedepends=('git' 'yara' 'glibc'
- 'python' 'python-setuptools'
- 'python2' 'python2-setuptools')
-source=(${pkgbase}::git+"https://github.com/VirusTotal/${_gitname}#commit=${_gitcommit}")
-sha512sums=('SKIP')
-
-pkgver() {
- cd ${pkgbase}
- git describe --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
-}
-
-prepare() {
- cp -a ${pkgbase}{,-py2}
-}
-
-build() {
- echo 'Building python...'
- (cd ${pkgbase}
- python setup.py build --dynamic-linking
- )
- echo 'Building python2...'
- (cd ${pkgbase}-py2
- python2 setup.py build --dynamic-linking
- )
-}
-
-check() {
- echo 'Checking python...'
- (cd ${pkgbase}
- 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
- )
- echo 'Checking python2...'
- (cd ${pkgbase}-py2
- local PYTHONVERSION="$(python2 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
- PYTHONPATH="build/lib.linux-${CARCH}-${PYTHONVERSION}" \
- python2 tests.py
- )
-}
-
-package_python-yara() {
- depends=('python' 'yara' 'libyara.so' 'glibc')
- cd ${pkgbase}
- 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"
-}
-
-package_python2-yara() {
- depends=('python2' 'yara' 'libyara.so' 'glibc')
- cd ${pkgbase}-py2
- python2 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 905851, python-yara/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-03-28 00:14:59 UTC (rev 905852)
@@ -0,0 +1,42 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: arch3y <arch3y[at]archstrike[dot]org>
+
+_gitname=yara-python
+pkgname=python-yara
+pkgver=4.0.5
+_gitcommit=83c005eda9b3dbe08581515e8db570ad7dcfee18
+pkgrel=2
+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:
More information about the arch-commits
mailing list