summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoracerix2015-06-29 08:47:18 -0400
committeracerix2015-06-29 08:47:18 -0400
commit1a93d2021d2eab2dd86ca8d04629ea9b600fd903 (patch)
tree8d9134520b403e32af12525c8ce382e80b454d1f
downloadaur-1a93d2021d2eab2dd86ca8d04629ea9b600fd903.tar.gz
Initial import
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD45
-rwxr-xr-xscallion.sh4
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..28d7d1a5143
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = scallion
+ pkgdesc = Creates vanity GPG keys and .onion addresses (for Tor's hidden services) using OpenCL.
+ pkgver = 2.0
+ pkgrel = 1
+ url = https://github.com/lachesis/scallion
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = mono
+ depends = mono
+ depends = opencl-nvidia
+ source = scallion.sh
+ sha256sums = 1090325b7cd46c5b90ac0c9c841ca6ccf15141fd3c7b2f409ebecf0db1d39dff
+
+pkgname = scallion
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b9b7e268750
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Dylan <dylan@hashflo.net>
+
+pkgname=scallion
+pkgver=2.0
+pkgrel=1
+pkgdesc="Creates vanity GPG keys and .onion addresses (for Tor's hidden services) using OpenCL."
+arch=('i686' 'x86_64')
+url="https://github.com/lachesis/scallion"
+license=('MIT')
+makedepends=('git' 'mono')
+depends=('mono' 'opencl-nvidia')
+source=('scallion.sh')
+sha256sums=('1090325b7cd46c5b90ac0c9c841ca6ccf15141fd3c7b2f409ebecf0db1d39dff')
+
+_gitroot="git://github.com/lachesis/scallion.git"
+_gitname=scallion
+
+build() {
+ cd "$srcdir"
+ msg "Connecting to GIT server...."
+
+ if [[ -d "$_gitname" ]]; then
+ cd "$_gitname" && git pull origin
+ msg "The local files are updated."
+ else
+ git clone "$_gitroot" "$_gitname"
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting build..."
+
+ rm -rf "$srcdir/$_gitname-build"
+ git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+ cd "$srcdir/$_gitname-build"
+
+ xbuild scallion.sln
+}
+
+package() {
+ install -Dm755 scallion.sh "$pkgdir/usr/bin/$pkgname"
+ install -d "$pkgdir/usr/share"
+ cp -r "$srcdir/$_gitname-build/$pkgname/bin/Debug" "$pkgdir/usr/share/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/scallion.sh b/scallion.sh
new file mode 100755
index 00000000000..3e1a737c1f6
--- /dev/null
+++ b/scallion.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/env sh
+
+/usr/bin/mono /usr/share/scallion/scallion.exe "$@"
+