summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFFY002018-04-26 19:44:37 +0100
committerFFY002018-04-26 19:44:37 +0100
commite732b29a558454765d382c5e4acd6673999fd800 (patch)
treed09d969abe33f6d1ecebadae59b5ee30734682a2
parent58e649fd572b9b53f8e4d3a685d64fadb5d4a8f0 (diff)
downloadaur-e732b29a558454765d382c5e4acd6673999fd800.tar.gz
pkgbuild: update build
-rw-r--r--.SRCINFO8
-rwxr-xr-xPKGBUILD32
-rw-r--r--sparta_launcher3
3 files changed, 27 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ebca94709a6..e642987c625 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -9,9 +9,13 @@ pkgbase = sparta
depends = python2-pyqt4
depends = python2-elixir
depends = python2-lxml
- conflicts = sparta-git
+ optdepends = cutycap: take screenshots of websites
+ provides = sparta
+ conflicts = sparta
source = https://github.com/SECFORCE/sparta/archive/v1.0.1.tar.gz
- sha256sums = 14aba154a94f2f31929087849c0dde44cdb59c337a8ecf2b0cecbae71690738f
+ source = sparta_launcher
+ md5sums = 710f86f0037e735e44a3dcd01db96af6
+ md5sums = 58f2181719cf57f9d5df3da9c8145c57
pkgname = sparta
diff --git a/PKGBUILD b/PKGBUILD
index c99f37c35fa..df59d4788ae 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
+# Maintainer: FFY00 <filipe.lains@gmail.com>
# Contributor: Cyberpunk <aur_linuxero@outlook.com>
-# Maintainer: Cyberpunk <aur_linuxero@outlook.com>
pkgname=sparta
pkgver=1.0.1
@@ -9,22 +9,26 @@ arch=('any')
url="http://sparta.secforce.com/"
license=('GPL2')
depends=('python2' 'python2-pyqt4' 'python2-elixir' 'python2-lxml')
+optdepends=('cutycap: take screenshots of websites')
makedeps=('nmap' 'hydra' 'cutycapt-svn' 'nikto')
-provide=('sparta')
-conflicts=('sparta-git')
-source=("https://github.com/SECFORCE/sparta/archive/v${pkgver}.tar.gz")
+provides=('sparta')
+conflicts=('sparta')
+source=(
+ "https://github.com/SECFORCE/sparta/archive/v${pkgver}.tar.gz"
+ 'sparta_launcher'
+)
+md5sums=(
+ '710f86f0037e735e44a3dcd01db96af6'
+ '58f2181719cf57f9d5df3da9c8145c57'
+)
package() {
msg2 "Installing sparta..."
- install -dm755 "${pkgdir}/usr/bin/"
- install -dm755 "${pkgdir}/usr/share/${pkgname}"
- cd "${srcdir}/${pkgname}-${pkgver}"
- cp -aRp --copy-contents * "${pkgdir}/usr/share/${pkgname}"
-cat > $pkgdir/usr/bin/sparta << "EOF"
-#!/bin/bash
-cd /usr/share/sparta/ && python2 sparta.py "$@"
-EOF
-chmod 755 "$pkgdir/usr/bin/sparta"
+ install -dm 755 "$pkgdir/usr/bin/"
+ install -dm 755 "$pkgdir/usr/share/$pkgname"
+
+ find "$srcdir/$pkgname-$pkgver" -type f -exec install -m 644 "{}" "$pkgdir/usr/share/$pkgname" \;
+
+ install -Dm 755 "$srcdir/sparta_launcher" "$pkgdir/usr/bin/sparta"
}
-sha256sums=('14aba154a94f2f31929087849c0dde44cdb59c337a8ecf2b0cecbae71690738f')
diff --git a/sparta_launcher b/sparta_launcher
new file mode 100644
index 00000000000..b1f64059ec1
--- /dev/null
+++ b/sparta_launcher
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+cd /usr/share/sparta/ && python2 sparta.py "$@"