summaryrefslogtreecommitdiff
path: root/development/uemacs/uemacs.SlackBuild
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryan.q@linux.com>2015-02-08 15:15:53 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-15 07:56:37 +0700
commit6dad9c1a81f874b883105331718d233ad792aa67 (patch)
treec45dbfd40d5c96458459e1b5f265986d8810cff0 /development/uemacs/uemacs.SlackBuild
parent0c30a68b53528fad263555089e1e4765c5c26f54 (diff)
downloadslackbuilds-6dad9c1a81f874b883105331718d233ad792aa67.tar.gz
development/uemacs: Updated for version 20141208.
Thanks to John Vogel for the sed help. Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'development/uemacs/uemacs.SlackBuild')
-rw-r--r--development/uemacs/uemacs.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/development/uemacs/uemacs.SlackBuild b/development/uemacs/uemacs.SlackBuild
index 965ffef1b6..85501bcffc 100644
--- a/development/uemacs/uemacs.SlackBuild
+++ b/development/uemacs/uemacs.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=uemacs
-VERSION=${VERSION:-20130222}
+VERSION=${VERSION:-20141208}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,14 +61,14 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM$VERSION.tar.xz
cd $PRGNAM
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX
@@ -77,10 +77,12 @@ sed -i -e "s|BINDIR=/usr/bin|BINDIR=${PKG}/usr/bin|" \
-e "s|LIBDIR=/usr/lib|LIBDIR=${PKG}/usr/lib$LIBDIRSUFFIX|" \
-e "s|CFLAGS=-O2 \$(WARNINGS)|CFLAGS=${SLKCFLAGS}|" Makefile
+sed -i -e "s|/usr/lib|/usr/lib$LIBDIRSUFFIX|" epath.h
+
make
make install
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION