Skip to content

Commit

Permalink
feat: bzip2 build script default using tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
j8xixo12 committed Nov 9, 2021
1 parent 8f8e440 commit ab1f081
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions scripts/build.d/bzip2
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,26 @@

set -e

pkgname=bzip2
pkgbranch=${VERSION:-master}
pkgfull=$pkgname-$pkgbranch
if [ -z "${SYNCGIT}" ]; then
pkgname=bzip2
pkgver=${VERSION:-master}
pkgfull=${pkgname}-${pkgver}
pkgfn=${pkgfull}.zip
pkgurl=https://gitlab.com/bzip2/bzip2/-/archive/${pkgver}/${pkgfn}

syncgit https://gitlab.com/bzip2 ${pkgname} ${pkgbranch} ${pkgfull}
download_md5 ${pkgfn} ${pkgurl} 1e9f8675b1346c4a00251cb2dae05c9e

mkdir -p ${DEVENVFLAVORROOT}/${DEVENVFLAVOR}/src
pushd ${DEVENVFLAVORROOT}/${DEVENVFLAVOR}/src
unzip ${DEVENVDLROOT}/${pkgfn}
popd
else
pkgname=bzip2
pkgbranch=${VERSION:-master}
pkgfull=$pkgname-$pkgbranch

syncgit https://gitlab.com/bzip2 ${pkgname} ${pkgbranch} ${pkgfull}
fi

pushd ${DEVENVFLAVORROOT}/${DEVENVFLAVOR}/src/${pkgfull} > /dev/null
mkdir -p build
Expand Down

0 comments on commit ab1f081

Please sign in to comment.