diff options
author | David Spencer <baildon.research@googlemail.com> | 2015-07-26 21:55:28 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | b7d8410d0d270ecb8125c8e06b06a99316408a07 (patch) | |
tree | 0d3c46270151051b582d974d939062b1f0f1c918 | |
parent | 741a8ea6d7f276b7edd75433011f4320329c3331 (diff) | |
download | slackbuilds-b7d8410d0d270ecb8125c8e06b06a99316408a07.tar.gz |
network/netsurf: Updated SlackBuild.
Fixed build failure on -current, clean $TMP properly.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
-rw-r--r-- | network/netsurf/netsurf.SlackBuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/network/netsurf/netsurf.SlackBuild b/network/netsurf/netsurf.SlackBuild index 738a5511bf..ed5e52a26a 100644 --- a/network/netsurf/netsurf.SlackBuild +++ b/network/netsurf/netsurf.SlackBuild @@ -54,14 +54,14 @@ else LIBDIRSUFFIX="" fi -set -e +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-all-$VERSION.tar.gz -cd $PRGNAM-all-$VERSION +rm -rf netsurf-all-$VERSION +tar xvf $CWD/netsurf-all-$VERSION.tar.gz +cd netsurf-all-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -73,12 +73,17 @@ if [ "${NETSURF_USE_VIDEO:-NO}"=="YES" ]; then patch --verbose -p1 < $CWD/enable-deprecated.diff fi +sed \ + -e 's:_BSD_SOURCE:_DEFAULT_SOURCE:' \ + -e 's:(WARNFLAGS) -Werror:(WARNFLAGS):' \ + -i */Makefile */*/Makefile.target + make install DESTDIR=$PKG PREFIX=/usr \ NETSURF_USE_MOZJS=${NETSURF_USE_MOZJS:-YES} \ NETSURF_USE_WEBP=${NETSURF_USE_WEBP:-NO} \ NETSURF_USE_VIDEO=${NETSURF_USE_VIDEO:-NO} -mkdir $PKG/usr/share/pixmaps +mkdir -p $PKG/usr/share/pixmaps cp netsurf/gtk/res/netsurf.png $PKG/usr/share/pixmaps cp netsurf/gtk/res/netsurf.xpm $PKG/usr/share/pixmaps |