mid-kid
9 years ago
3 changed files with 30 additions and 7 deletions
@ -1,10 +1,15 @@ |
|||||
download_git() { |
download_git() { |
||||
if [ ! -d "$dir_source/$name/$2" ]; then |
_func_reponame="$(basename "$1")" |
||||
rm -rf "$dir_source/$name/$2" |
_func_dir="$dir_source/$name/$_func_reponame-$2" |
||||
git clone --recursive --depth=1 -b "$2" "$1" "$dir_source/$name/$2" |
|
||||
|
if [ ! -d "$_func_dir" ]; then |
||||
|
rm -rf "$_func_dir" |
||||
|
git clone --recursive --depth=1 -b "v$2" "$1" "$_func_dir" |
||||
else |
else |
||||
cd "$dir_source/$name/$2" |
cd "$_func_dir" |
||||
git checkout "tags/$2" |
git checkout "tags/v$2" |
||||
cd "$OLDPWD" |
cd "$OLDPWD" |
||||
fi |
fi |
||||
|
|
||||
|
getfile "$_func_reponame-$2" |
||||
} |
} |
||||
|
@ -0,0 +1,18 @@ |
|||||
|
import "compile/configure" |
||||
|
|
||||
|
name=Heimdall |
||||
|
version=1.4.1 |
||||
|
update_url="https://github.com/Benjamin-Dobell/$name/releases" |
||||
|
|
||||
|
dlextract "https://github.com/Benjamin-Dobell/$name/archive/v$version.tar.gz" \ |
||||
|
"22c911e9042f5ed8fd90cbeeb9589015" |
||||
|
header_end |
||||
|
|
||||
|
cd "$name-$version/libpit" |
||||
|
./configure |
||||
|
make |
||||
|
|
||||
|
cd "../heimdall" |
||||
|
compile_configure |
||||
|
|
||||
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
Loading…
Reference in new issue