[arch-commits] Commit in python-yara/repos (2 files)

2020-11-12 Thread Felix Yan via arch-commits
Date: Thursday, November 12, 2020 @ 17:43:07
  Author: felixonmars
Revision: 752778

archrelease: copy trunk to community-staging-x86_64

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

--+
 PKGBUILD |   71 +
 1 file changed, 71 insertions(+)

Copied: python-yara/repos/community-staging-x86_64/PKGBUILD (from rev 752776, 
python-yara/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-11-12 17:43:07 UTC (rev 752778)
@@ -0,0 +1,71 @@
+# Maintainer: Levente Polyak 
+# Contributor: arch3y 
+
+_gitname=yara-python
+pkgbase=python-yara
+pkgname=('python-yara' 'python2-yara')
+pkgver=4.0.2
+_gitcommit=a1ed3cb54e8361a24e185183fccd888d99b15ae5
+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')
+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:


[arch-commits] Commit in python-yara/repos (2 files)

2020-05-15 Thread Levente Polyak via arch-commits
Date: Friday, May 15, 2020 @ 19:32:00
  Author: anthraxx
Revision: 628093

archrelease: copy trunk to community-staging-x86_64

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

--+
 PKGBUILD |   71 +
 1 file changed, 71 insertions(+)

Copied: python-yara/repos/community-staging-x86_64/PKGBUILD (from rev 628092, 
python-yara/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-05-15 19:32:00 UTC (rev 628093)
@@ -0,0 +1,71 @@
+# Maintainer: Levente Polyak 
+# Contributor: arch3y 
+
+_gitname=yara-python
+pkgbase=python-yara
+pkgname=('python-yara' 'python2-yara')
+pkgver=4.0.1
+_gitcommit=286897d41e4d38d74f31142251d785598fc8f223
+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:


[arch-commits] Commit in python-yara/repos (2 files)

2019-11-03 Thread Felix Yan via arch-commits
Date: Monday, November 4, 2019 @ 07:51:46
  Author: felixonmars
Revision: 523588

archrelease: copy trunk to community-staging-x86_64

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

--+
 PKGBUILD |   71 +
 1 file changed, 71 insertions(+)

Copied: python-yara/repos/community-staging-x86_64/PKGBUILD (from rev 523586, 
python-yara/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-11-04 07:51:46 UTC (rev 523588)
@@ -0,0 +1,71 @@
+# Maintainer: Levente Polyak 
+# Contributor: arch3y 
+
+_gitname=yara-python
+pkgbase=python-yara
+pkgname=('python-yara' 'python2-yara')
+pkgver=3.10.0
+_gitcommit=32b6a74727d456a021937f5b57a0062404884df0
+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')
+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 --always | sed 's/^v//;s/-/./g'
+}
+
+prepare() {
+  cp -a ${pkgbase}{,-py2}
+}
+
+build() {
+  msg2 'Building python...'
+  (cd ${pkgbase}
+python setup.py build --dynamic-linking
+  )
+  msg2 'Building python2...'
+  (cd ${pkgbase}-py2
+python2 setup.py build --dynamic-linking
+  )
+}
+
+check() {
+  msg2 '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
+  )
+  msg2 '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' 'glibc')
+  cd ${pkgbase}
+  python setup.py install --root="${pkgdir}" -O1 --skip-build
+  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+  ln -s /usr/share/doc/yara/docs "${pkgdir}/usr/share/doc/${pkgname}/docs"
+}
+
+package_python2-yara() {
+  depends=('python2' 'yara' 'glibc')
+  cd ${pkgbase}-py2
+  python2 setup.py install --root="${pkgdir}" -O1 --skip-build
+  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+  ln -s /usr/share/doc/yara/docs "${pkgdir}/usr/share/doc/${pkgname}/docs"
+}
+
+# vim: ts=2 sw=2 et:


[arch-commits] Commit in python-yara/repos (2 files)

2018-06-30 Thread Felix Yan via arch-commits
Date: Saturday, June 30, 2018 @ 16:17:21
  Author: felixonmars
Revision: 348412

archrelease: copy trunk to community-staging-x86_64

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

--+
 PKGBUILD |   71 +
 1 file changed, 71 insertions(+)

Copied: python-yara/repos/community-staging-x86_64/PKGBUILD (from rev 348411, 
python-yara/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-30 16:17:21 UTC (rev 348412)
@@ -0,0 +1,71 @@
+# Maintainer: Levente Polyak 
+# Contributor: arch3y 
+
+_gitname=yara-python
+pkgbase=python-yara
+pkgname=('python-yara' 'python2-yara')
+pkgver=3.7.0
+_gitcommit=71138553e7cfe7f96e7822898dd8331f3eacef4e
+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')
+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 --always | sed 's/^v//;s/-/./g'
+}
+
+prepare() {
+  cp -a ${pkgbase}{,-py2}
+}
+
+build() {
+  msg2 'Building python...'
+  (cd ${pkgbase}
+python setup.py build --dynamic-linking
+  )
+  msg2 'Building python2...'
+  (cd ${pkgbase}-py2
+python2 setup.py build --dynamic-linking
+  )
+}
+
+check() {
+  msg2 '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
+  )
+  msg2 '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' 'glibc')
+  cd ${pkgbase}
+  python setup.py install --root="${pkgdir}" -O1 --skip-build
+  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+  ln -s /usr/share/doc/yara/docs "${pkgdir}/usr/share/doc/${pkgname}/docs"
+}
+
+package_python2-yara() {
+  depends=('python2' 'yara' 'glibc')
+  cd ${pkgbase}-py2
+  python2 setup.py install --root="${pkgdir}" -O1 --skip-build
+  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+  ln -s /usr/share/doc/yara/docs "${pkgdir}/usr/share/doc/${pkgname}/docs"
+}
+
+# vim: ts=2 sw=2 et: