Tweak thaw, update build-tgz and gen-tgz-list for repo changes

This commit is contained in:
Chris Dorman 2020-12-02 14:19:40 -08:00
parent 32c0c99abb
commit 341347dda4
11 changed files with 55 additions and 40 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# Build Freon Linux software from source. # Build Freon Linux software from source.
# Version: 0.5.0 # Version: 0.6.0
# (C) Chris Dorman, 2018-2020 GPLv3+ # (C) Chris Dorman, 2018-2020 GPLv3+
corecount="25" corecount="25"

View File

@ -30,21 +30,16 @@ case $1 in
if [ -d $tmpdir ]; then if [ -d $tmpdir ]; then
rm -rf $tmpdir rm -rf $tmpdir
fi fi
./build-extensions $1 ./build-extensions $1
mkdir $tmpdir mkdir $tmpdir
mkdir $freondir mkdir $freondir
if [ -f "deps/${1}.deps" ]; then
cp deps/$1.deps $tmpdir/
fi
if [ -f "deps/${1}.exec" ]; then if [ -f "deps/${1}.exec" ]; then
cp deps/$1.exec $tmpdir/execute.sh cp deps/$1.exec $tmpdir/execute.sh
fi fi
cp -av $freondir $tmpdir/. cp -av $freondir $tmpdir/.
cd $tmpdir cd $tmpdir

12
deps/glib2.deps vendored
View File

@ -1,14 +1,8 @@
harfbuzz harfbuzz
cairo
ffi ffi
atk
pango
png16
jpg62
xcb
gobject-intro gobject-intro
gtk2 pcre
idn
fribidi fribidi
gdk-pixbuf selinux
util-linux util-linux
libbsd

10
deps/gtk2.deps vendored
View File

@ -2,3 +2,13 @@ glib2
pcre pcre
expat expat
gdk-pixbuf gdk-pixbuf
cairo
freetype
fribidi
png16
atk
pango
fontconfig
bz2
xlibs
libbsd

3
deps/harfbuzz.deps vendored
View File

@ -1,2 +1,5 @@
freetype freetype
png16 png16
bz2
glib2
pcre

3
deps/hexchat.deps vendored
View File

@ -1,5 +1,4 @@
glib2
gtk2 gtk2
xlibs xlibs
notify notify
selinux menu-cache

4
deps/pango.deps vendored Normal file
View File

@ -0,0 +1,4 @@
glib2
fribidi
ffi
pcre

3
deps/xfont.deps vendored
View File

@ -1,3 +0,0 @@
fontenc
freetype
png16

4
deps/xlibs.deps vendored Normal file
View File

@ -0,0 +1,4 @@
png16
fontenc
fontconfig
libbsd

View File

@ -55,6 +55,10 @@ case $1 in
echo "${2} is already installed." echo "${2} is already installed."
exit 0 exit 0
fi fi
if [ -f $TMPPATH/$2 ]; then
rm $TMPPATH/$2
fi
if [ ! -d $TMPPATH/$2 ]; then if [ ! -d $TMPPATH/$2 ]; then
mkdir $TMPPATH/$2 mkdir $TMPPATH/$2
@ -68,6 +72,7 @@ case $1 in
echo "Downloading ${2}..." echo "Downloading ${2}..."
wget $(cat $MIRRORFILE)/$2.tgz -P $TMPPATH/ wget $(cat $MIRRORFILE)/$2.tgz -P $TMPPATH/
wget $(cat $MIRRORFILE)/$2.deps -P $TMPPATH/
else else
echo "${2} was not found in repository." echo "${2} was not found in repository."
exit 1 exit 1
@ -80,7 +85,7 @@ case $1 in
status status
# Examine dependencies for package # Examine dependencies for package
if [ -f "$TMPPATH/$2/$2.deps" ]; then if [ -f "$TMPPATH/$2.deps" ]; then
i=1 i=1
echo "" echo ""
echo "++++++++++++++++++++++++++++++++++++++++" echo "++++++++++++++++++++++++++++++++++++++++"
@ -92,7 +97,7 @@ case $1 in
else else
echo "$line" echo "$line"
fi fi
done < $TMPPATH/$2/$2.deps done < $TMPPATH/$2.deps
sleep 1 sleep 1
echo "++++++++++++++++++++++++++++++++++++++++" echo "++++++++++++++++++++++++++++++++++++++++"
echo "Installing dependencies..." echo "Installing dependencies..."
@ -104,7 +109,7 @@ case $1 in
echo "Installing ${line} for ${2}" echo "Installing ${line} for ${2}"
thaw get-install ${line} thaw get-install ${line}
fi fi
done < $TMPPATH/$2/$2.deps done < $TMPPATH/$2.deps
echo "++++++++++++++++++++++++++++++++++++++++" echo "++++++++++++++++++++++++++++++++++++++++"
fi fi
@ -118,21 +123,21 @@ case $1 in
echo "Running ${2}'s execution script..." echo "Running ${2}'s execution script..."
$TMPPATH/$2/execute.sh $TMPPATH/$2/execute.sh
fi fi
if [ -f "/execute.sh" ]; then
rm /execute.sh
fi
if [ -f "/$2.deps" ]; then
rm /$2.deps
fi
if [ -f "/$2.tgz" ]; then
rm /$2.tgz
fi
echo -n "Cleaning up..." echo -n "Cleaning up..."
rm -r $TMPPATH/$2 if [ -f "/execute.sh" ]; then
rm /execute.sh
fi
if [ -f "/$2.deps" ]; then
rm /$2.deps
fi
if [ -f "/$2.tgz" ]; then
rm /$2.tgz
fi
rm -r $TMPPATH/*
status status
echo -n "Marking ${2} in the installation database..." echo -n "Marking ${2} in the installation database..."

View File

@ -3,6 +3,8 @@
# Version: 0.0.1 # Version: 0.0.1
# (C) Chris Dorman, 2020 GPLv3+ # (C) Chris Dorman, 2020 GPLv3+
MIRRORPATH="/opt/htdocs/freon/files/packages"
echo "MAKE SURE THE ONLY .tgz FILES ARE PACKAGES IN THE REPO WITHIN THE SAME DIRECTORY OF THIS FILE!" echo "MAKE SURE THE ONLY .tgz FILES ARE PACKAGES IN THE REPO WITHIN THE SAME DIRECTORY OF THIS FILE!"
sleep 2 sleep 2
@ -11,3 +13,5 @@ for f in *.tgz
do do
echo "${f%.tgz}" >> package.list echo "${f%.tgz}" >> package.list
done done
cp -a * $MIRRORPATH/.