forked from DoubleDor/imagemagick-prebuilt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·57 lines (46 loc) · 2.36 KB
/
build.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
rm -rf artifacts
docker build -t imagemagick-prebuilt .
mkdir artifacts
# Here we build librsvg and imagemagick, and throw them into /mnt/artifcats
#
# We also copy all of the required shared libararies (.so files) to the directory
# so that we don't need to install them on Lambda
# TODO: Copying .so's makes the package gigantic, there's probably a better way
#
# It also downloads imagick_type_gen from http://www.imagemagick.org/Usage/scripts/imagick_type_gen
# which is a helper script for detecting system fonts
docker run -i --rm -v ${PWD}/artifacts:/mnt/artifacts imagemagick-prebuilt /bin/bash << COMMANDS
mkdir -p /tmp/imagemagick
mkdir -p /tmp/src
cd /tmp/src
mkdir librsvg
wget http://ftp.gnome.org/pub/gnome/sources/librsvg/2.40/librsvg-2.40.15.tar.xz -O librsvg.tar.xz
tar -C librsvg --strip-components=1 -xJf librsvg.tar.xz
cd librsvg
./configure --prefi