Skip to content

Commit 0645c59

Browse files
committed
Update libicu download link
1 parent 49151b8 commit 0645c59

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pythonforandroid/recipes/icu/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ class ICURecipe(Recipe):
1111
name = 'icu4c'
1212
version = '57.1'
1313
major_version = version.split('.')[0]
14-
url = ('http://download.icu-project.org/files/icu4c/'
15-
'{version}/icu4c-{version_underscore}-src.tgz')
14+
url = (
15+
"https://github.com/unicode-org/icu/releases/download/"
16+
"release-{version_hyphen}/icu4c-{version_underscore}-src.tgz"
17+
)
1618

1719
depends = ['hostpython3'] # installs in python
1820
patches = ['disable-libs-version.patch']
@@ -34,7 +36,8 @@ def versioned_url(self):
3436
return None
3537
return self.url.format(
3638
version=self.version,
37-
version_underscore=self.version.replace('.', '_'))
39+
version_underscore=self.version.replace('.', '_'),
40+
version_hyphen=self.version.replace('.', '-'))
3841

3942
def get_recipe_dir(self):
4043
"""

0 commit comments

Comments
 (0)