up
This commit is contained in:
1 parent
2dfdf91528
commit
0d15808a6f
1 file changed
+13
@@ -402,6 +402,18 @@ buildpkg() {
|
|||||||
git clone $gitsource $srcdir
|
git clone $gitsource $srcdir
|
||||||
check $? "Download sources"
|
check $? "Download sources"
|
||||||
fi
|
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
|
if [[ $(type -t build) = function ]]; then
|
||||||
printf "$BBLUE**$BWHITE Building package\n$RESET"
|
printf "$BBLUE**$BWHITE Building package\n$RESET"
|
||||||
build
|
build
|
||||||
@@ -423,6 +435,7 @@ buildpkg() {
|
|||||||
printf "$BBLUE**$BWHITE Strip unneded symbols [$BGREEN SUCCESS $BWHITE]\n$RESET"
|
printf "$BBLUE**$BWHITE Strip unneded symbols [$BGREEN SUCCESS $BWHITE]\n$RESET"
|
||||||
cd $pkgdir
|
cd $pkgdir
|
||||||
find -type f > $buildroot/list
|
find -type f > $buildroot/list
|
||||||
|
find -type l >> $buildroot/list
|
||||||
sed -i "s/.\///" $buildroot/list
|
sed -i "s/.\///" $buildroot/list
|
||||||
cd $buildroot
|
cd $buildroot
|
||||||
mv list $pkgdir/list
|
mv list $pkgdir/list
|
||||||
|
|||||||
Reference in new issue
Block a user