-
Notifications
You must be signed in to change notification settings - Fork 6
/
enlighten-me.sh
executable file
·73 lines (58 loc) · 1.46 KB
/
enlighten-me.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/sh
# Ryan P. C. McQuen | Everett, WA
# This is where all the compilation and final results will be placed
TMP=${TMP:-/tmp}
# This is the original directory where you started this script
ROOT=$(pwd)
sbo_pkg_install() {
SBO_PACKAGE=$1
if [ -z "`find /var/log/packages/ -name $SBO_PACKAGE-*`" ]; then
## `echo p` fixes sqg confusion
echo p | sbopkg -B -e stop -i $SBO_PACKAGE
fi
}
sbopkg -r
## grab these from SBo
sbo_pkg_install lua
sbo_pkg_install luajit
sbo_pkg_install bullet
# get source balls
sh download.sh
# Loop for all packages:
for dir in \
scim \
efl \
python-efl \
enlightenment \
terminology \
ephoto \
rage \
; do
# get the package name
package=$(echo $dir | cut -f2- -d /)
# Change to package directory
cd $ROOT/$dir || exit 1
# Get the version
version=$(grep "VERSION=" ${package}.info | cut -d "=" -f2 | rev | cut -c 2- | rev | cut -c 2-)
# The real build starts here
sh ${package}.SlackBuild || exit 1
PACKAGE="${package}-$version-*sEL.txz"
if [ -f $TMP/$PACKAGE ]; then
upgradepkg --install-new --reinstall $TMP/$PACKAGE
else
echo "Error: package to upgrade "$PACKAGE" not found in $TMP"
exit 1
fi
# back to original directory
cd $ROOT
done
if [ -z "$(grep sEL /etc/slackpkg/blacklist)" ]; then
echo [0-9]+sEL >> /etc/slackpkg/blacklist
fi
echo
echo
echo "*------------------------------*"
echo "You are ready to be ENLIGHTENED!"
echo "*------------------------------*"
echo
echo