Update from aur

This commit is contained in:
moparisthebest
2017-11-25 21:32:19 -05:00
parent 3861d23ae2
commit 80f46f9b25
61 changed files with 857 additions and 295 deletions

View File

@@ -1,49 +1,40 @@
# Maintainer: Dylan <dylan@hashflo.net>
# Maintainer: Dylan <dylan@psilly.com>
pkgname=scallion
pkgver=2.0
pkgver=2.1
pkgrel=1
pkgdesc="Creates vanity GPG keys and .onion addresses (for Tor's hidden services) using OpenCL."
arch=('i686' 'x86_64')
pkgdesc="Creates vanity GPG keys and .onion addresses using OpenCL."
arch=("i686" "x86_64")
url="https://github.com/lachesis/scallion"
license=('MIT')
makedepends=('git' 'mono')
depends=('mono')
makedepends=('mono')
depends=('mono' 'openssl-1.0')
optdepends=(
'opencl-nvidia: OpenCL support for NVIDIA'
'opencl-mesa: OpenCL support for AMD/ATI Radeon mesa'
"opencl-nvidia: For NVIDIA"
"opencl-mesa: For AMD/ATI Radeon mesa"
)
source=(
"$url/archive/v$pkgver.tar.gz"
"scallion.sh"
"set_openssl_1.0_paths.patch"
)
sha256sums=(
"0b1a8daec7873546d89b1174af2e475963af86de3016ed63b28302bf5bb80c1c"
"1090325b7cd46c5b90ac0c9c841ca6ccf15141fd3c7b2f409ebecf0db1d39dff"
"28a1a2429bef1e150316176a07c5dfc7f5c2052e152c94ed22dd563b86408546"
)
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"
pushd "$srcdir/$pkgname-$pkgver"
xbuild scallion.sln
popd
patch "$srcdir/$pkgname-$pkgver/$pkgname/bin/Debug/openssl.dll.config" "set_openssl_1.0_paths.patch"
}
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"
cp -r "$srcdir/$pkgname-$pkgver/$pkgname/bin/Debug" "$pkgdir/usr/share/$pkgname"
}
# vim:set ts=2 sw=2 et:

0
src/scallion/scallion.sh Executable file → Normal file
View File

View File

@@ -0,0 +1,6 @@
4,5c4,5
< <dllmap os="!windows,osx" dll="libeay32" target="libcrypto.so"/>
< <dllmap os="!windows,osx" dll="ssleay32" target="libssl.so"/>
---
> <dllmap os="!windows,osx" dll="libeay32" target="/usr/lib/openssl-1.0/libcrypto.so"/>
> <dllmap os="!windows,osx" dll="ssleay32" target="/usr/lib/openssl-1.0/libssl.so"/>