You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			24 lines
		
	
	
		
			430 B
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			24 lines
		
	
	
		
			430 B
		
	
	
	
		
			Bash
		
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
set -euo pipefail
 | 
						|
 | 
						|
webp_tar_url=https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.0.2.tar.gz
 | 
						|
 | 
						|
prepare_source() {
 | 
						|
  cd /tmp
 | 
						|
  wget "$webp_tar_url"
 | 
						|
  tar -xzf /tmp/libwebp-*
 | 
						|
  rm /tmp/libwebp-*.tar.gz
 | 
						|
  cd /tmp/libwebp-*
 | 
						|
}
 | 
						|
 | 
						|
build_and_install() {
 | 
						|
  export MAKEFLAGS=-j`nproc`
 | 
						|
  ./configure --enable-static --disable-shared
 | 
						|
  make
 | 
						|
  make install
 | 
						|
}
 | 
						|
 | 
						|
prepare_source
 | 
						|
build_and_install
 |