File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed
Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,6 @@ def source
2222 "#{ tmp } /#{ dir } "
2323 end
2424
25- def tarball
26- "#{ source } .tar.gz"
27- end
28-
2925 def tmp_arch
3026 "#{ tmp } /#{ plat } "
3127 end
Original file line number Diff line number Diff line change @@ -93,17 +93,8 @@ directory Build.install_dir
9393directory Build . build_dir
9494directory Build . tmp
9595
96- file Build . source => [ Build . tarball ] do
97- chdir Build . tmp do
98- sh "tar xzf #{ Build . tarball } "
99- end
100- end
101-
102- file Build . tarball => [ Build . tmp ] do |t |
103- require 'open-uri'
104- puts "Downloading #{ taglib_url } "
105-
106- File . open ( t . name , 'wb' ) do |f |
107- IO . copy_stream ( URI . open ( taglib_url ) , f )
108- end
96+ file Build . source do
97+ sh "git clone --depth=1 --branch=v#{ Build . version } https://github.com/taglib/taglib.git #{ Build . source } "
98+ sh "git -C #{ Build . source } submodule init"
99+ sh "git -C #{ Build . source } submodule update --depth=1"
109100end
You can’t perform that action at this time.
0 commit comments