diff options
author | Ye Shu | 2019-02-22 22:55:15 +0800 |
---|---|---|
committer | Ye Shu | 2019-02-22 22:55:15 +0800 |
commit | d299015d155b3dae1f682ee288f9b3160a8340a4 (patch) | |
tree | 18be66692a317594d193613bbd3d36c5c1f2e597 | |
parent | c3325e14ba882c08890d1f212621d3e25fef7e03 (diff) | |
download | aur-d299015d155b3dae1f682ee288f9b3160a8340a4.tar.gz |
Update to v2.0
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 40 | ||||
-rw-r--r-- | nautilus-python.patch | 12 |
3 files changed, 22 insertions, 43 deletions
@@ -1,8 +1,6 @@ -# Generated by mksrcinfo v8 -# Thu Jun 28 07:08:20 UTC 2018 pkgbase = onionshare pkgdesc = Lets you securely and anonymously share a file of any size with someone - pkgver = 1.3.1 + pkgver = 2.0 pkgrel = 1 url = https://github.com/micahflee/onionshare arch = any @@ -12,12 +10,13 @@ pkgbase = onionshare depends = stem depends = python-flask depends = tor + depends = python-pycryptodome + depends = python-pysocks optdepends = python-pyqt5: to run onionshare-gui + optdepends = python-nautilus: to enable Nautilus right-click extension optdepends = obfs4proxy: for tor bridge support - source = https://github.com/micahflee/onionshare/archive/v1.3.1.tar.gz - source = nautilus-python.patch - sha512sums = b0c2e2660900e270248781aa355c0f09163fc668aa48ee628a652acfd42fdc19079f583088545c94ee3fd928300cdbf683096ef1f6d334abdaac763bcb5708b2 - sha512sums = d884248099f22ba72e99d40bce49d262ef2a481cc29af1d8b726c5d39eba2f6f21987317d44fea1eb46f136249da008523e6e6ae7d3f6be551966d5bfdd72552 + source = onionshare-2.0.tar.gz::https://github.com/micahflee/onionshare/archive/v2.0.tar.gz + sha512sums = 1c3dbe90b52b1147f5dbe686453e518100fe7d71428a14231451c3e4a6f2aa8b4d1e5ea64cbb753ce2d7c3789f1479b9a715d2a68288dcf33e50070fb693520d pkgname = onionshare @@ -1,6 +1,7 @@ -# Maintainer: Simon Hanna <thelinuxguy on freenode> +# Maintainer: Ye Shu <shuye02@outlook.com> + pkgname=onionshare -pkgver=1.3.1 +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" @@ -8,35 +9,26 @@ arch=('any') license=('GPL3') makedepends=('python-setuptools') checkdepends=('python-pytest') -depends=('stem' 'python-flask' 'tor') +depends=('stem' 'python-flask' 'tor' 'python-pycryptodome' 'python-pysocks') optdepends=( - 'python-pyqt5: to run onionshare-gui' - '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 - nautilus-python.patch - ) -sha512sums=('b0c2e2660900e270248781aa355c0f09163fc668aa48ee628a652acfd42fdc19079f583088545c94ee3fd928300cdbf683096ef1f6d334abdaac763bcb5708b2' - 'd884248099f22ba72e99d40bce49d262ef2a481cc29af1d8b726c5d39eba2f6f21987317d44fea1eb46f136249da008523e6e6ae7d3f6be551966d5bfdd72552') + 'python-pyqt5: to run onionshare-gui' + 'python-nautilus: to enable Nautilus right-click extension' + 'obfs4proxy: for tor bridge support' +) - -prepare() { - cd "$srcdir/onionshare-$pkgver" - patch -i "${srcdir}/nautilus-python.patch" -} +source=( + "${pkgname}-${pkgver}.tar.gz::https://github.com/micahflee/onionshare/archive/v$pkgver.tar.gz" +) +sha512sums=('1c3dbe90b52b1147f5dbe686453e518100fe7d71428a14231451c3e4a6f2aa8b4d1e5ea64cbb753ce2d7c3789f1479b9a715d2a68288dcf33e50070fb693520d') check() { cd "$srcdir/onionshare-$pkgver" - pytest test/ + pytest tests/ } package() { - cd "$srcdir/onionshare-$pkgver" + 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" + install -Dm644 install/onionshare.desktop "${pkgdir}/usr/share/applications/onionshare.desktop" + install -Dm644 install/onionshare80.xpm "${pkgdir}/usr/share/pixmaps/onionshare80.xpm" } - -# vim:set ts=2 sw=2 et: diff --git a/nautilus-python.patch b/nautilus-python.patch deleted file mode 100644 index f1a3601d166b..000000000000 --- a/nautilus-python.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ura onionshare-1.3.orig/setup.py onionshare-1.3/setup.py ---- onionshare-1.3.orig/setup.py 2018-02-26 19:06:54.000000000 +0100 -+++ onionshare-1.3/setup.py 2018-02-28 10:17:12.114032300 +0100 -@@ -54,8 +54,6 @@ - (os.path.join(sys.prefix, 'share/onionshare/locale'), file_list('share/locale')), - (os.path.join(sys.prefix, 'share/onionshare/html'), file_list('share/html')), - ] --if platform.system() != 'OpenBSD': -- data_files.append(('/usr/share/nautilus-python/extensions/', ['install/scripts/onionshare-nautilus.py'])) - - setup( - name='onionshare', version=version, |