summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorThibault Miranda de Oliveira2018-09-13 12:13:44 +0200
committerThibault Miranda de Oliveira2018-09-13 12:13:44 +0200
commitfab0d96f89350579c09c95430983a0da161eef0e (patch)
treee02dcfbd5c50a75b3c55fc610717836a7d064828 /PKGBUILD
downloadaur-fluxion.tar.gz
Add PKGBUILD and .SRCINFO
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a459e725eca
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,66 @@
+# Maintainer: Cyberfee <deltax.fluxion@gmail.com>
+
+_pkgname=fluxion
+pkgname=$_pkgname
+pkgver=r24.75353f7
+pkgrel=1
+pkgdesc='Fluxion is a security auditing and social-engineering research tool'
+url='https://github.com/FluxionNetwork/fluxion'
+license=('GPL3')
+source=('git://github.com/FluxionNetwork/fluxion.git#branch=master')
+
+depends=(
+ 'aircrack-ng' 'bash>=4.2' 'coreutils'
+ 'awk' 'iw' 'unzip'
+ 'curl' 'bc' 'xterm'
+)
+
+makedepends=('binutils' 'coreutils' 'git')
+conflicts=('fluxion')
+provides=('fluxion')
+sha256sums=('SKIP')
+arch=('any')
+
+prepare() {
+ if [ -d "$srcdir/$pkgname" ]; then
+ rm -rf "$srcdir/$pkgname"
+ fi
+
+ mkdir -p "$srcdir/$pkgname"
+ cd "$srcdir/$pkgname"
+}
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+
+ ( set -o pipefail
+ git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ )
+}
+
+prepare() {
+ cd "$srcdir/$_pkgname"
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+
+ mkdir -p "$pkgdir/usr/bin"
+ mkdir -p "$pkgdir/usr/share/fluxion"
+
+ install -Dm644 -t "$pkgdir/usr/share/doc/fluxion/" README.md
+ install -Dm644 -t "$pkgdir/usr/local/man/man1/" docs/man/fluxion.1
+
+ rm -rf *.md .git* *.yml .project .editorconfig
+
+ cp -a --no-preserve=ownership * "$pkgdir/usr/share/fluxion"
+
+ cat > "$pkgdir/usr/bin/fluxion" << EOF
+#!/bin/sh
+cd /usr/share/fluxion
+exec bash fluxion.sh "\${@}"
+EOF
+
+ chmod a+x "$pkgdir/usr/bin/fluxion"
+}