Merge pull request 'up' (#12) from up into main
Reviewed-on: https://gitea.home.com:3000/TolaMironcenko/pm/pulls/12
This commit was merged in pull request #12.
This commit is contained in:
commit
b93e6153af
1 file changed
+13
@@ -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
|
||||
|
||||
Reference in new issue
Block a user