mirror of
https://codeberg.org/gwh/slackbuilds.git
synced 2024-11-16 19:51:19 +01:00
sanitize before packaging
Signed-off-by: Gwenhael Le Moine <cycojesus@darkstar.example.net>
This commit is contained in:
parent
fc618b6e23
commit
4b66327013
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue