Commit 8a22ff24 authored by Noud Kerver's avatar Noud Kerver

add seperate script for getting dependencies

parent 26fbe042
Pipeline #253 failed
image: noud02/replicant-build-base:latest
stages:
- build
- build_i9300
i9300:
stage: build
script: bash ./build.sh i9300
stage: build_i9300
before_script: bash ./deps.sh
script: su - yui -c "bash ./build.sh i9300"
tags:
- x86_64-host
cache:
......
......@@ -26,69 +26,6 @@ if [ -z "$DEVICE" ]; then
exit 1
fi
if [ "$(whoami)" != "root" ]; then
echo "User must be root"
exit 1
fi
#####################################
apt-get build-dep -y gcc binutils llvm-defaults
apt-get install -y \
gcc-arm-none-eabi \
cmake \
python-dev \
swig \
ant \
bc \
proguard \
maven-debian-helper \
libemma-java \
libasm4-java \
libguava-java \
libnb-platform18-java \
libnb-org-openide-util-java \
libandroidsdk-ddmlib-java \
libmaven-source-plugin-java \
libfreemarker-java \
libmaven-javadoc-plugin-java \
ca-cacert \
curl \
gawk \
libgmp3-dev \
libmpfr-dev \
libmpc-dev \
git-core \
gperf \
libncurses-dev \
squashfs-tools \
pngcrush \
zip \
zlib1g-dev \
lzma \
libc6-dev-i386 \
g++-multilib \
lib32z1-dev \
lib32readline-dev \
lib32ncurses5-dev \
zlib1g-dev:i386 \
xsltproc \
python-mako \
schedtool \
gradle \
dirmngr \
libandroidsdk-sdklib-java \
eclipse-jdt \
libgradle-android-plugin-java \
android-sdk-build-tools \
android-sdk-platform-23 \
aapt \
lzop \
repo \
gpg
su - yui
if [ "$(whoami)" != "yui" ]; then
echo "User must be yui"
exit 1
......
#!/usr/bin/env bash
#
# Build script for Replicant
# Copyright (C) 2018 Noud Kerver
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
set -e
if [ "$(whoami)" != "root" ]; then
echo "User must be root"
exit 1
fi
apt-get build-dep -y gcc binutils llvm-defaults
apt-get install -y \
gcc-arm-none-eabi \
cmake \
python-dev \
swig \
ant \
bc \
proguard \
maven-debian-helper \
libemma-java \
libasm4-java \
libguava-java \
libnb-platform18-java \
libnb-org-openide-util-java \
libandroidsdk-ddmlib-java \
libmaven-source-plugin-java \
libfreemarker-java \
libmaven-javadoc-plugin-java \
ca-cacert \
curl \
gawk \
libgmp3-dev \
libmpfr-dev \
libmpc-dev \
git-core \
gperf \
libncurses-dev \
squashfs-tools \
pngcrush \
zip \
zlib1g-dev \
lzma \
libc6-dev-i386 \
g++-multilib \
lib32z1-dev \
lib32readline-dev \
lib32ncurses5-dev \
zlib1g-dev:i386 \
xsltproc \
python-mako \
schedtool \
gradle \
dirmngr \
libandroidsdk-sdklib-java \
eclipse-jdt \
libgradle-android-plugin-java \
android-sdk-build-tools \
android-sdk-platform-23 \
aapt \
lzop \
repo \
gpg
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