[arch-commits] Commit in python-yara/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Mon Oct 10 16:06:17 UTC 2016


    Date: Monday, October 10, 2016 @ 16:06:17
  Author: anthraxx
Revision: 191878

upgpkg: python-yara 3.5.0-2 (use dynamic linking + static git commit)

- adds dynamic linking against yara lib to fix symbol
  resolve issues.
- adds forgotten static git commit to not pull from HEAD
  but the according tag.

Modified:
  python-yara/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-10 15:53:17 UTC (rev 191877)
+++ PKGBUILD	2016-10-10 16:06:17 UTC (rev 191878)
@@ -1,18 +1,34 @@
 # 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=3.5.0
-pkgrel=1
+_gitcommit=9fd9fd290872e36360e5e3839c49e21a908bf128
+pkgrel=2
 pkgdesc='Tool aimed at helping malware researchers to identify and classify malware samples'
 url='https://github.com/VirusTotal/yara-python'
 arch=('i686' 'x86_64')
 license=('Apache')
 makedepends=('git' 'yara' 'python-setuptools' 'python2-setuptools')
-source=(${pkgbase}::git+https://github.com/VirusTotal/${_gitname})
+source=(${pkgbase}::git+"https://github.com/VirusTotal/${_gitname}#commit=${_gitcommit}")
 sha512sums=('SKIP')
 
+prepare() {
+  cp -a ${pkgbase}{,-py2}
+}
+
+build() {
+  (cd ${pkgbase}
+    python setup.py build --dynamic-linking
+  )
+  (cd ${pkgbase}-py2
+    python2 setup.py build --dynamic-linking
+  )
+}
+
+
 package_python-yara() {
   depends=('python' 'yara')
   cd ${pkgbase}
@@ -23,7 +39,7 @@
 
 package_python2-yara() {
   depends=('python2' 'yara')
-  cd ${pkgbase}
+  cd ${pkgbase}-py2
   python2 setup.py install --root="${pkgdir}" -O1
   install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
   ln -s /usr/share/doc/yara/docs "${pkgdir}/usr/share/doc/${pkgname}/docs"



More information about the arch-commits mailing list