This commit is contained in:
wt
2025-04-08 16:25:59 +07:00
parent 2dfdf91528
commit 0d15808a6f
+13
View File
@@ -402,6 +402,18 @@ buildpkg() {
git clone $gitsource $srcdir
check $? "Download sources"
fi
if [ "$source" != "" ]; then
printf "$BBLUE**$BWHITE Downloading sources\n$RESET"
[ ! -d $srcdir ] && mkdir -p $srcdir
cd $srcdir
wget $source
cd -
fi
if [[ $(type -t configure) = function ]]; then
printf "$BBLUE**$BWHITE Configuring package\n$RESET"
configure
check $? "Configure"
fi
if [[ $(type -t build) = function ]]; then
printf "$BBLUE**$BWHITE Building package\n$RESET"
build
@@ -423,6 +435,7 @@ buildpkg() {
printf "$BBLUE**$BWHITE Strip unneded symbols [$BGREEN SUCCESS $BWHITE]\n$RESET"
cd $pkgdir
find -type f > $buildroot/list
find -type l >> $buildroot/list
sed -i "s/.\///" $buildroot/list
cd $buildroot
mv list $pkgdir/list