代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/aria2 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
FROM ubuntu:trusty
MAINTAINER Igor Khomyakov
RUN apt-get update && \
apt-get install -y make binutils autoconf automake autotools-dev libtool \
pkg-config git curl dpkg-dev autopoint libcppunit-dev libxml2-dev \
libgcrypt11-dev lzip
RUN git clone https://github.com/raspberrypi/tools.git --depth=1 /tools
ENV ARCH armhf
ENV HOST arm-linux-gnueabihf
ENV LOCAL_DIR /local
ENV TOOL_BIN_DIR /tools/arm-bcm2708/gcc-linaro-$HOST-raspbian-x64/bin
ENV PATH ${TOOL_BIN_DIR}:$PATH
RUN mkdir $LOCAL_DIR && mkdir zlib && cd zlib && \
curl -Ls -o - 'http://zlib.net/zlib-1.2.11.tar.gz' | \
tar xzf - --strip-components=1 && \
prefix=${LOCAL_DIR} \
CC=$HOST-gcc \
STRIP=$HOST-strip \
RANLIB=$HOST-ranlib \
AR=$HOST-ar \
LD=$HOST-ld \
./configure --static \
--libdir=$LOCAL_DIR/lib && \
make -s && \
make -s install
RUN mkdir -p expat && cd expat && \
curl -Ls -o - 'https://sourceforge.net/projects/expat/files/expat/2.2.0/expat-2.2.0.tar.bz2/download' | \
tar xjf - --strip-components=1 && \
./configure \
--host=$HOST \
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
--enable-shared=no \
--enable-static=yes \
--prefix=${LOCAL_DIR} && \
make -s && \
make -s install
RUN mkdir c-ares && cd c-ares && \
curl -Ls -o - 'http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz' | \
tar xzf - --strip-components=1 && \
./configure \
--host=$HOST \
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
--enable-shared=no \
--enable-static=yes \
--prefix=${LOCAL_DIR} && \
make -s && \
make -s install
RUN mkdir gmp && cd gmp && \
curl -Ls -o - 'https://gmplib.org/download/gmp/gmp-6.1.0.tar.lz' | \
lzip -d | tar xf - --strip-components=1 && \
./configure \
--disable-shared \
--enable-static \
--prefix=$LOCAL_DIR \
--host=$HOST \
--disable-cxx \
--enable-fat && \
make -s && \
make -s install
RUN mkdir sqlite && cd sqlite && \
curl -Ls -o - 'https://www.sqlite.org/2016/sqlite-autoconf-3100100.tar.gz' | \
tar xzf - --strip-components=1 && \
./configure \
--disable-shared \
--enable-static \
--prefix=$LOCAL_DIR \
--host=$HOST \
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` && \
make -s && \
make -s install
RUN mkdir aria && cd aria && \
curl -s 'https://api.github.com/repos/aria2/aria2/releases/latest' | \
grep 'browser_download_url.*[0-9]\.tar\.bz2' | sed -e 's/^[[:space:]]*//' | \
cut -d ' ' -f 2 | xargs -I % curl -Ls -o - '%' | tar xjf - --strip-components=1 && \
./configure \
--host=$HOST \
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
--disable-nls \
--disable-ssl \
--without-gnutls \
--without-libxml2 \
--with-libz --with-libz-prefix=${LOCAL_DIR} \
--with-libexpat --with-libexpat-prefix=${LOCAL_DIR} \
--with-slite3 --with-sqlite3-prefix=${LOCAL_DIR} \
--with-libcares --with-libcares-prefix=${LOCAL_DIR} \
--prefix=${LOCAL_DIR} \
LDFLAGS="-L$LOCAL_DIR/lib" \
PKG_CONFIG_PATH="$LOCAL_DIR/lib/pkgconfig" \
ARIA2_STATIC=yes && \
make -s && \
make -s install-strip
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。