File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
pythonforandroid/recipes/libsodium Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 33from pythonforandroid .logger import shprint
44from multiprocessing import cpu_count
55import sh
6+ from packaging import version as packaging_version
67
78
89class LibsodiumRecipe (Recipe ):
910 version = '1.0.16'
10- url = 'https://github.com/jedisct1/libsodium/releases/download/{version }/libsodium-{version }.tar.gz'
11+ url = 'https://github.com/jedisct1/libsodium/releases/download/{}/libsodium-{}.tar.gz'
1112 depends = []
1213 patches = ['size_max_fix.patch' ]
1314 built_libraries = {'libsodium.so' : 'src/libsodium/.libs' }
1415
16+ @property
17+ def versioned_url (self ):
18+ asked_version = packaging_version .parse (self .version )
19+ if asked_version > packaging_version .parse ('1.0.16' ):
20+ return self ._url .format (self .version + '-RELEASE' , self .version )
21+ else :
22+ return self ._url .format (self .version , self .version )
23+
1524 def build_arch (self , arch ):
1625 env = self .get_recipe_env (arch )
1726 with current_directory (self .get_build_dir (arch .arch )):
You can’t perform that action at this time.
0 commit comments