1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-11 11:35:00 -05:00
arch-ppa/src/scallion/PKGBUILD

50 lines
1.2 KiB
Bash
Raw Normal View History

2016-11-05 01:29:34 -04:00
# 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')
optdepends=(
'opencl-nvidia: OpenCL support for NVIDIA'
'opencl-mesa: OpenCL support for AMD/ATI Radeon mesa'
)
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: