Skip to content

Instantly share code, notes, and snippets.

@agentsib
Last active July 13, 2017 00:12
Show Gist options
  • Save agentsib/b26c6fc9d8bce8fcf69dc859b705c170 to your computer and use it in GitHub Desktop.
Save agentsib/b26c6fc9d8bce8fcf69dc859b705c170 to your computer and use it in GitHub Desktop.
Shallot Archlinux
# Maintainer: David Manouchehri <david@davidmanouchehri.com>
pkgname=shallot-git
_gitname=Shallot
_gitauthor=katmagic
pkgver=0.0.3.r26.g831de01
pkgrel=2
pkgdesc="Shallot allows you to create customized .onion addresses for your hidden service."
arch=('i686' 'x86_64')
source=("git://github.com/$_gitauthor/$_gitname.git")
url="https://github.com/$_gitauthor/$_gitname"
license=('custom')
makedepends=('git' 'openssl-1.0')
sha512sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
git describe --long | sed -E 's/shallot.//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$_gitname"
# Openssl-1.0
sed -i 's@-I/usr/include @-I/usr/include/openssl-1.0 @' Makefile
# Build
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$_gitname"
# Install
mkdir -p $pkgdir/usr/bin/
cp shallot $pkgdir/usr/bin/
# License
echo ${_gitname,,}
install -D LICENSE "${pkgdir}/usr/share/licenses/${_gitname,,}/LICENSE.txt"
}
@SrKaysama
Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment