diff --git a/manifest/armv7l/h/hugo.filelist b/manifest/armv7l/h/hugo.filelist new file mode 100644 index 000000000..addfab1b8 --- /dev/null +++ b/manifest/armv7l/h/hugo.filelist @@ -0,0 +1,2 @@ +# Total size: 50023508 +/usr/local/bin/hugo diff --git a/manifest/i686/h/hugo.filelist b/manifest/i686/h/hugo.filelist new file mode 100644 index 000000000..65a0bcf31 --- /dev/null +++ b/manifest/i686/h/hugo.filelist @@ -0,0 +1,2 @@ +# Total size: 47227696 +/usr/local/bin/hugo diff --git a/manifest/x86_64/h/hugo.filelist b/manifest/x86_64/h/hugo.filelist index f3dfbd5eb..7f8f10fa7 100644 --- a/manifest/x86_64/h/hugo.filelist +++ b/manifest/x86_64/h/hugo.filelist @@ -1 +1,2 @@ +# Total size: 56703208 /usr/local/bin/hugo diff --git a/packages/hugo.rb b/packages/hugo.rb index b13c5a5b9..580182bad 100644 --- a/packages/hugo.rb +++ b/packages/hugo.rb @@ -3,24 +3,26 @@ require 'package' class Hugo < Package description 'Hugo is one of the most popular open-source static site generators.' homepage 'https://gohugo.io' - version ARCH.eql?('i686') ? '0.101.0' : '0.132.1' + version ARCH.eql?('i686') ? '0.101.0' : '0.153.1' license 'Apache-2.0, Unlicense, BSD, BSD-2 and MPL-2.0' compatibility 'all' + min_glibc '2.29' if ARCH.eql?('x86_64') source_url({ - aarch64: 'https://github.com/gohugoio/hugo/releases/download/v0.132.1/hugo_0.132.1_linux-arm.tar.gz', - armv7l: 'https://github.com/gohugoio/hugo/releases/download/v0.132.1/hugo_0.132.1_linux-arm.tar.gz', - i686: 'https://github.com/gohugoio/hugo/releases/download/v0.101.0/hugo_0.101.0_Linux-32bit.tar.gz', # 0.101.0 is the latest version available - x86_64: 'https://github.com/gohugoio/hugo/releases/download/v0.132.1/hugo_extended_0.132.1_linux-amd64.tar.gz' + aarch64: "https://github.com/gohugoio/hugo/releases/download/v#{version}/hugo_#{version}_linux-arm.tar.gz", + armv7l: "https://github.com/gohugoio/hugo/releases/download/v#{version}/hugo_#{version}_linux-arm.tar.gz", + i686: "https://github.com/gohugoio/hugo/releases/download/v#{version}/hugo_#{version}_Linux-32bit.tar.gz", # 0.101.0 is the latest version available + x86_64: "https://github.com/gohugoio/hugo/releases/download/v#{version}/hugo_extended_#{version}_linux-amd64.tar.gz" }) source_sha256({ - aarch64: 'b96d769b94477b75d50cab0e6b548c3b896a991692d000d9481b636e6fe6fdba', - armv7l: 'b96d769b94477b75d50cab0e6b548c3b896a991692d000d9481b636e6fe6fdba', + aarch64: 'a26f56c368dd7077560d7e9ba57e6d95e5f143e1d0347a3a346c2715920fb658', + armv7l: 'a26f56c368dd7077560d7e9ba57e6d95e5f143e1d0347a3a346c2715920fb658', i686: '9ae794edd86415a611cae15fc72382ee6f2b729754e15319c144057a5457eaed', - x86_64: '4280ee4823e8035ef83d1e1948184b3e1fa44f2280ea7bb64be60818e2b6ff14' + x86_64: 'e5806957b8696d10a713199503b21b577abf92e1bcb85730124269479e7f5fc6' }) + no_compile_needed + def self.install - FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin" FileUtils.install 'hugo', "#{CREW_DEST_PREFIX}/bin/hugo", mode: 0o755 end end diff --git a/tests/package/h/hugo b/tests/package/h/hugo new file mode 100755 index 000000000..8d11f7816 --- /dev/null +++ b/tests/package/h/hugo @@ -0,0 +1,3 @@ +#!/bin/bash +hugo -h | head +hugo version