~fredg/NuTyX

c1aa4dacf6200b862a3093ed4074367a80d2532a — alienus 8 years ago 63323fd
Rm fu** trailing spaces
1 files changed, 7 insertions(+), 9 deletions(-)

M pkgdir
M pkgdir => pkgdir +7 -9
@@ 1,6 1,6 @@
#!/bin/bash
#
# 
#
# pkgdir
#
# The MIT License (MIT)


@@ 25,7 25,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

PKGDIR_VERSION=0.2.1
PKGDIR_VERSION=0.2.2

#
# ex: pkgdir -p plop@0.1


@@ 36,7 36,7 @@ print_help()
    echo "Usage: pkgdir [options] Dir"
    echo "Options:"
    echo "  -d,    --default        Install default Pkgfile & info in Dir"
    echo "  -k,    --kde            Install kde Pkgfile & info in Dir" 
    echo "  -k,    --kde            Install kde Pkgfile & info in Dir"
    echo "  -p,    --perl           Install perl Pkgfile & info in Dir"
    echo "  -py,   --python         Install python Pkgfile & info in Dir"
    echo "  -w,    --waf            Install waf Pkgfile & info in Dir"


@@ 78,14 78,13 @@ build(){
    cd \$name-\$version
    ./configure --prefix=/usr
    make
    make DESTDIR=\$PKG install    
    make DESTDIR=\$PKG install
}



# NuTyX Pkgfile (http://nutyx.org)
EOF

    echo "$PORT/Pkgfile default created"
}



@@ 151,12 150,11 @@ build() {

# NuTyX Pkgfile (http://nutyx.org)
EOF

    echo "$PORT/Pkgfile waf created"
}

# kde template
pkg_kde() 
pkg_kde()
{
    cat > $PKGNAME\@$PKGVERSION/Pkgfile << EOF
source=()


@@ 188,7 186,7 @@ pkg_info()
    cat > $PKGNAME\@$PKGVERSION/$PKGNAME.info << EOF
blabla

URL: 
URL:

Packager:



@@ 269,7 267,7 @@ main()
        print_help
    else
        die "Wrong option, see pkgdir --help !"
    fi    
    fi
}

main "$@"