diff options
author | Eric Hameleers <alien@slackware.com> | 2010-12-20 23:01:11 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2010-12-20 23:01:11 +0000 |
commit | dd25037ff75a11ed7f8e3b3c8cad317a32b27157 (patch) | |
tree | 9a7efebd793e186ebd6fca6c8861d485cdc8e661 /minidlna | |
parent | 8ebb345901912cebc7ce86fabca91a3fe96fbadf (diff) | |
download | asb-dd25037ff75a11ed7f8e3b3c8cad317a32b27157.tar.gz asb-dd25037ff75a11ed7f8e3b3c8cad317a32b27157.tar.xz |
Working version
Diffstat (limited to 'minidlna')
-rwxr-xr-x | minidlna/build/minidlna.SlackBuild | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/minidlna/build/minidlna.SlackBuild b/minidlna/build/minidlna.SlackBuild index 8fd6ffcf..a0f737a8 100755 --- a/minidlna/build/minidlna.SlackBuild +++ b/minidlna/build/minidlna.SlackBuild @@ -152,9 +152,15 @@ echo Building ... export LDFLAGS="$SLKLDFLAGS" export CXXFLAGS="$SLKCFLAGS" export CFLAGS="$SLKCFLAGS" -sed -i -e "s/-O3 /${SLKCFLAGS} /" Makefile +sed -i \ + -e "s/-O3 /${SLKCFLAGS} /" \ + -e '/^minidlna/s/ *$(LIBS)//' \ + Makefile make PREFIX=/usr 2>&1 | tee $OUTPUT/make-${PRGNAM}.log -make PREFIX=$PKG/usr install 2>&1 | tee $OUTPUT/install-${PRGNAM}.log +make PREFIX=$PKG install 2>&1 | tee $OUTPUT/install-${PRGNAM}.log + +# Do not clobber an existing configuration: +mv $PKG/etc/minidlna.conf{,.new} # Add this to the doinst.sh: mkdir -p $PKG/install @@ -176,7 +182,7 @@ config() { } # An example of how you handle your '.new' config files: -#config etc/minidlna.conf.new +config etc/minidlna.conf.new EOINS @@ -187,12 +193,6 @@ cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION find $PKG/usr/doc -type f -exec chmod 644 {} \; -# Compress the man page(s): -if [ -d $PKG/usr/man ]; then - find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; - for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -fi - # Strip binaries (if any): find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |