forked from JuliaBerry/julia-raspbian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deb.sh
executable file
·31 lines (28 loc) · 1.06 KB
/
deb.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
JULIA_VER=1.0.0
if [ ! -f julia/julia-$JULIA_VER-Linux-arm.tar.gz ]; then
wget -c https://github.com/JuliaLang/julia/releases/download/v$JULIA_VER/julia-$JULIA_VER.tar.gz && \
mkdir -p julia/lib/julia && \
tar -zxvf julia-$JULIA_VER.tar.gz -C julia --strip-components=1 && \
cp -f Make.user julia
fi
cd julia && make -j1 binary-dist
rm -fr julia-$JULIA_VER julia_* && \
tar zxf julia-$JULIA_VER-Linux-arm.tar.gz && \
cd julia-$JULIA_VER && \
mv LICENSE.md share/doc/julia/LICENSE.md && \
rm -f lib/julia/libpcre2-posix.so* && \
rm -f lib/julia/libstdc++.so* && \
rm -f bin/*-debug* lib/*-debug* lib/julia/*-debug* && \
rm -fr libexec && \
rm -f lib/julia/libccalltest* && \
mkdir usr && \
mv bin include lib share usr && \
tar cvf ../julia-$JULIA_VER.tar * && \
cd .. && \
rm -fr julia-$JULIA_VER && \
fakeroot alien -d --generate julia-$JULIA_VER.tar && \
cp -f ../control julia-$JULIA_VER/debian && \
cd julia-$JULIA_VER && \
debuild --no-lintian