~fredg/NuTyX

85d6e4e1b6aa8cee95ff8461d173a2bd83b6089a — alienus 8 years ago 9ee46c2
add \ for VAR in cat >
1 files changed, 12 insertions(+), 12 deletions(-)

M pkgdir.sh
M pkgdir.sh => pkgdir.sh +12 -12
@@ 53,9 53,9 @@ pkg_default()
source=()

build(){
    cd $name-$version
    cd \$name-\$version
    make
    make DESTDIR=$PKG install    
    make DESTDIR=\$PKG install    
}




@@ 72,8 72,8 @@ pkg_python()
source=()

build() {
    cd $name-$version
    python2 setup.py install --prefix=/usr --root=$PKG
    cd \$name-\$version
    python2 setup.py install --prefix=/usr --root=\$PKG
}




@@ 90,14 90,14 @@ pkg_perl()
source=()

build() {
    cd $name-$version
    cd \$name-\$version
    perl Makefile.PL
    make OPTIMIZE="$CFLAGS" || exit 1
    make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1
    make OPTIMIZE="\$CFLAGS" || exit 1
    make install INSTALLDIRS=vendor DESTDIR=\$PKG || exit 1

    # Remove perllocal.pod and .packlist if present in the package
    for i in perllocal.pod .packlist; do
        find $PKG -name "$i" -exec rm -rf {} \;
        find \$PKG -name "\$i" -exec rm -rf {} \;
    done
}



@@ 115,10 115,10 @@ pkg_waf()
source=()

build() {
    cd $name-$version
    cd \$name-\$version
    ./waf configure --prefix=/usr
    ./waf build
    ./waf install --destdir=$PKG
    ./waf install --destdir=\$PKG
}




@@ 132,13 132,13 @@ EOF
pkg_info()
{
    cat > $PKGNAME\@$PKGVERSION/$PKGNAME.info << EOF

blabla

URL: 

Packager:

at nutyx dot org
x at nutyx dot org