Commit 37040e31 authored by Matthew Brett's avatar Matthew Brett Committed by GitHub
Browse files

Merge pull request #23 from anthrotype/build-tar.bz2

[library_builders] allow to override tar.gz extension in build_simple
parents 4857b03f 900b39c4
...@@ -52,12 +52,13 @@ function build_simple { ...@@ -52,12 +52,13 @@ function build_simple {
local name=$1 local name=$1
local version=$2 local version=$2
local url=$3 local url=$3
local ext=${4:-tar.gz}
if [ -e "${name}-stamp" ]; then if [ -e "${name}-stamp" ]; then
return return
fi fi
local name_version="${name}-${version}" local name_version="${name}-${version}"
local targz=${name_version}.tar.gz local archive=${name_version}.${ext}
fetch_unpack $url/$targz fetch_unpack $url/$archive
(cd $name_version \ (cd $name_version \
&& ./configure --prefix=$BUILD_PREFIX \ && ./configure --prefix=$BUILD_PREFIX \
&& make \ && make \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment