diff --git a/src/pm b/src/pm index 858b3db..e21b77c 100755 --- a/src/pm +++ b/src/pm @@ -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