Created
February 21, 2019 18:26
-
-
Save simonfxr/7c2dab686f1e13433bfd4042de1bcb74 to your computer and use it in GitHub Desktop.
onionshare 2.0 PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Simon Hanna <thelinuxguy on freenode> | |
pkgname=onionshare | |
pkgver=2.0 | |
pkgrel=1 | |
pkgdesc="Lets you securely and anonymously share a file of any size with someone" | |
url="https://github.com/micahflee/onionshare" | |
arch=('any') | |
license=('GPL3') | |
makedepends=('python-setuptools') | |
checkdepends=('python-pytest') | |
depends=('stem' 'python-flask' 'python-pycryptodome' 'python-pysocks' 'tor') | |
optdepends=( | |
'python-pyqt5: to run onionshare-gui' | |
'python-nautilus: to enable Nautilus right-click extension' | |
'obfs4proxy: for tor bridge support' | |
) | |
# if you want nautilus integration you need to remove the nautilus patch | |
source=( | |
https://github.com/micahflee/onionshare/archive/v$pkgver.tar.gz | |
) | |
sha512sums=('1c3dbe90b52b1147f5dbe686453e518100fe7d71428a14231451c3e4a6f2aa8b4d1e5ea64cbb753ce2d7c3789f1479b9a715d2a68288dcf33e50070fb693520d') | |
check() { | |
cd "$srcdir/onionshare-$pkgver" && pytest test/ | |
} | |
package() { | |
cd "$srcdir/onionshare-$pkgver" || return $? | |
python setup.py install --root="$pkgdir/" --optimize=1 | |
install -D -m 644 install/onionshare.desktop "${pkgdir}/usr/share/applications/onionshare.desktop" | |
install -D -m 644 install/onionshare80.xpm "${pkgdir}/usr/share/pixmaps/onionshare80.xpm" | |
} | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment