nitroshare: work on python3
This commit is contained in:
committed by
classabbyamp
parent
8e607d7173
commit
7677b59d1a
13
srcpkgs/nitroshare/patches/python3.patch
Normal file
13
srcpkgs/nitroshare/patches/python3.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
--- a/src/dist/nitroshare.py.in
|
||||||
|
+++ b/src/dist/nitroshare.py.in
|
||||||
|
@@ -27,8 +27,8 @@
|
||||||
|
|
||||||
|
from json import loads
|
||||||
|
from os import path
|
||||||
|
-from urllib import url2pathname
|
||||||
|
-from urlparse import urlparse
|
||||||
|
+from urllib.request import url2pathname
|
||||||
|
+from urllib.parse import urlparse
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Gtk', '3.0')
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# Template file for 'nitroshare'
|
# Template file for 'nitroshare'
|
||||||
pkgname=nitroshare
|
pkgname=nitroshare
|
||||||
version=0.3.4
|
version=0.3.4
|
||||||
revision=1
|
revision=2
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
pycompile_dirs="usr/share/nautilus-python/extensions
|
pycompile_dirs="usr/share/nautilus-python/extensions
|
||||||
usr/share/nemo-python/extensions
|
usr/share/nemo-python/extensions
|
||||||
@@ -15,7 +15,7 @@ license="MIT"
|
|||||||
homepage="http://nitroshare.net"
|
homepage="http://nitroshare.net"
|
||||||
distfiles="https://github.com/nitroshare/nitroshare-desktop/archive/${version}.tar.gz"
|
distfiles="https://github.com/nitroshare/nitroshare-desktop/archive/${version}.tar.gz"
|
||||||
checksum=29874e5909c29211a3c9e13f8c0f49b901ec2996e5d60d80af80d2fb80c3d7ec
|
checksum=29874e5909c29211a3c9e13f8c0f49b901ec2996e5d60d80af80d2fb80c3d7ec
|
||||||
python_version=2 #unverified
|
python_version=3
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" qt5-host-tools"
|
hostmakedepends+=" qt5-host-tools"
|
||||||
|
|||||||
Reference in New Issue
Block a user