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

Felix Yan felixonmars at archlinux.org
Tue Jul 7 15:17:23 UTC 2020


    Date: Tuesday, July 7, 2020 @ 15:17:23
  Author: felixonmars
Revision: 658883

archrelease: copy trunk to community-staging-x86_64

Added:
  cowpatty/repos/community-staging-x86_64/
  cowpatty/repos/community-staging-x86_64/PKGBUILD
    (from rev 658881, cowpatty/trunk/PKGBUILD)

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

Copied: cowpatty/repos/community-staging-x86_64/PKGBUILD (from rev 658881, cowpatty/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 15:17:23 UTC (rev 658883)
@@ -0,0 +1,41 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: CRT <crt.011 at gmail.com>
+# Contributor: Sébastien Duquette <ekse.0x at gmail.com>
+# Contributor: icarus <icarus.roaming at gmail.com>
+# Contributor: Stephane Travostino <stephane.travostino at gmail.com>
+
+pkgname=cowpatty
+pkgver=4.8
+pkgrel=2
+pkgdesc='Wireless WPA/WPA2 PSK handshake cracking utility'
+url='https://github.com/joswr1ght/cowpatty'
+arch=('x86_64')
+license=('GPL')
+depends=('openssl' 'libpcap')
+options=('!makeflags')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/joswr1ght/cowpatty/archive/${pkgver}.tar.gz)
+sha512sums=('a0a6ef859e0d1a5d753377b8eac50ef46ded7c1ddae50795bdc1170a5c8b572a3ae397ac9bcb9341863a69f0d2dc3e24d9727873baa10c3ee730d8dc6a8d0683')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  sed -E 's|(= -pipe)|+\1|g' -i Makefile
+  sed 's|-g3 -ggdb||g' -i Makefile
+  sed '/clang/d' -i Makefile
+  sed -E "s/(cowpatty.c -o|genpmk.c -o)/${LDFLAGS} \\1/g" -i Makefile
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  CFLAGS+=" ${CPPFLAGS}"
+  make all strip
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" BINDIR=/usr/bin install
+  install -Dm 644 dict "${pkgdir}/usr/share/cowpatty/dict"
+  install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list