[arch-commits] Commit in impacket/repos (community-any community-any/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Fri Mar 4 21:10:43 UTC 2016


    Date: Friday, March 4, 2016 @ 22:10:42
  Author: anthraxx
Revision: 164843

archrelease: copy trunk to community-any

Added:
  impacket/repos/community-any/
  impacket/repos/community-any/PKGBUILD
    (from rev 164842, impacket/trunk/PKGBUILD)

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

Copied: impacket/repos/community-any/PKGBUILD (from rev 164842, impacket/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-03-04 21:10:42 UTC (rev 164843)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Sirat18 <aur at sirat18.de>
+# Contributor: Paolo Giangrandi <peoro.noob at gmail.com>
+
+pkgname=impacket
+pkgver=0.9.14
+pkgrel=2
+pkgdesc='Collection of classes for working with network protocols'
+url='https://github.com/CoreSecurity/impacket'
+arch=('any')
+license=('Apache')
+depends=('python2-crypto' 'python2-pyasn1' 'python2-pcapy')
+checkdepends=('python2-pytest')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/CoreSecurity/impacket/archive/impacket_${pkgver//./_}.tar.gz)
+sha512sums=('8f2ac11ce2c76e11190c06868f80ceef588bbbfbb30f6574d093f371eb5d65af70ad04ee8fc2e5300c9b14c84d2f5ce6c46dc85ffe8e5003f8f8b9081c700854')
+
+prepare() {
+  cd ${pkgname}-${pkgname}_${pkgver//./_}
+  find . -type f -exec sed -r 's|(#!/usr/bin/(env )?python)$|\12|' -i '{}' \;
+}
+
+check() {
+  cd ${pkgname}-${pkgname}_${pkgver//./_}
+  PYTHONPATH="./impacket:${PYTHONPATH}" \
+    PYTHONDONTWRITEBYTECODE=1 \
+    py.test2 impacket/testcases/ImpactPacket
+}
+
+package() {
+  cd ${pkgname}-${pkgname}_${pkgver//./_}
+  python2 setup.py install -O1 --root="${pkgdir}"
+  install -Dm 644 ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list