sanitize before packaging

Signed-off-by: Gwenhael Le Moine <cycojesus@darkstar.example.net>
This commit is contained in:
Gwenhael Le Moine 2009-12-07 10:30:27 +07:00
parent fc618b6e23
commit 4b66327013

View file

@ -42,6 +42,10 @@ rm -fr $PKG
--infodir=$PREFIX/info
make
make DESTDIR=$PKG install
mkdir -p $PKG/$PREFIX/doc/
( cd $PKG/$PREFIX/doc
ln -s ../share/doc/parrot $PRGNAM-$VERSION
)
)
)
@ -61,5 +65,14 @@ $PRGNAM: http://parrot.org/
$PRGNAM:
EOF
chown -R root:root *
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$PACKAGER.txz
)