forked from nihilismus/bob-infinality-bundle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbob-sources.sh
executable file
·44 lines (32 loc) · 1.3 KB
/
bob-sources.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
#!/bin/sh
set -e
# If you get "Delaying before reconnect" with lftp, you can
# echo 'set net:reconnect-interval-base 0' to ~/.lftprc and see if that
# works.
MIRROR=$(/usr/bin/grep -v '^#' /etc/slackpkg/mirrors | xargs)
# A well-know mirror
# MIRROR=http://slackware.mirrors.tds.net/pub/slackware/slackware64-current
SLACKBUILDS="source/x/fontconfig/ source/l/cairo/ patches/source/freetype/"
for slackbuild in $SLACKBUILDS; do
echo "Mirroring..."
echo "$MIRROR/$slackbuild => $(pwd)/$slackbuild"
sleep 1
mkdir -p $slackbuild
lftp -c "mirror -c -e -p $MIRROR/$slackbuild $slackbuild"
done
VERSION=2015-01-01
echo "Downloading modifications..."
wget -N https://github.com/bohoomil/fontconfig-ultimate/archive/$VERSION.tar.gz
tar xpf $VERSION.tar.gz
echo "Copying modifications..."
mkdir patches/source/freetype/infinality-bundle
cp -r fontconfig-ultimate-$VERSION/freetype/* patches/source/freetype/infinality-bundle/
cp -r modifications/freetype/* patches/source/freetype/
cp -r modifications/fontconfig/* source/x/fontconfig/
cp -r modifications/cairo/* source/l/cairo
echo "Patching SlackBuilds..."
patch -Np0 -i patches/source/freetype/freetype.SlackBuild.patch
patch -Np0 -i source/x/fontconfig/fontconfig.SlackBuild.patch
patch -Np0 -i source/l/cairo/cairo.SlackBuild.patch
echo "Done."
#EOF