Created
December 4, 2017 07:27
-
-
Save pgab/0ff2b87fa8f6ae4e49a0471b7fdb54d1 to your computer and use it in GitHub Desktop.
Librsvg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo docker build -t librsvg --build-arg RUST_VERSION=stable-x86_64-unknown-linux-gnu . | |
mkdir mnt | |
sudo docker run -v "$PWD/mnt":/mnt/outside librsvg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get install -y libgdk-pixbuf2.0-dev libxml2-dev libpangocairo-1.0-0 libpangoft2-1.0-0 libcairo2-dev libcroco3-dev libpango1.0-dev libgirepository1.0-dev | |
cd /mnt/outside | |
wget -O - http://artfiles.org/gnome.org/sources/librsvg/2.41/librsvg-2.41.1.tar.xz > librsvg-2.41.1.tar.xz | |
tar -xf librsvg-2.41.1.tar.xz | |
cd librsvg-2.41.1 | |
./configure && make -j4 | |
cd .. | |
tar -jc librsvg-2.41.1 > librsvg-2.41.1-build.tar.bz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:zesty | |
RUN apt-get update && apt-get install -y wget vim | |
RUN echo 'deb http://apt.llvm.org/zesty/ llvm-toolchain-zesty main' > /etc/apt/sources.list.d/clang.list | |
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|apt-key add - | |
RUN apt-get update && apt-get install -y \ | |
build-essential autoconf libtool automake\ | |
ca-certificates \ | |
libssl-dev \ | |
git \ | |
curl \ | |
pkg-config \ | |
llvm-3.9-dev libclang-3.9-dev clang-3.9 && \ | |
curl https://sh.rustup.rs -sSf | sh -s -- -y | |
ENV PATH=/root/.cargo/bin:$PATH | |
ARG RUST_VERSION | |
RUN rustup update $RUST_VERSION && \ | |
rustup default $RUST_VERSION | |
ADD build_librsvg.sh / | |
RUN chmod a+x build_librsvg.sh | |
ENTRYPOINT ["/build_librsvg.sh"] | |
CMD ["/build_librsvg.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment