diff options
author | Pragmatic Cypher <slackbuilds@server.ky> | 2018-05-11 14:36:57 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-05-12 06:58:27 +0700 |
commit | ceabe138cb72b28526a0329bcc81a4af9d3d65b9 (patch) | |
tree | 7627dfea0e0b190a114c32d98100a4c5c007bb61 /system/nix/nix.SlackBuild | |
parent | 89a7b0e6c0ece8f0f49c985079c5b512f4730dbb (diff) |
system/nix: Updated for version 2.0.2.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/nix/nix.SlackBuild')
-rw-r--r-- | system/nix/nix.SlackBuild | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/system/nix/nix.SlackBuild b/system/nix/nix.SlackBuild index 8925bc1230618..825db7c78a7c7 100644 --- a/system/nix/nix.SlackBuild +++ b/system/nix/nix.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=nix -VERSION=${VERSION:-1.11.13} +VERSION=${VERSION:-2.0.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -72,9 +72,10 @@ find -L . \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ - --mandir=/usr/man \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ --sysconfdir=/etc \ --build=$ARCH-slackware-linux \ --host=$ARCH-slackware-linux @@ -82,7 +83,10 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -install -D --mode 0755 $CWD/rc.nix $PKG/etc/rc.d/rc.nix.new +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 + +install -D --mode 0755 $CWD/config/rc.nix $PKG/etc/rc.d/rc.nix.new mkdir -p $PKG/nix mkdir -p $PKG/var/nix/profiles mkdir -p $PKG/nix/var/nix/profiles @@ -91,13 +95,7 @@ mkdir -p $PKG/nix/var/nix/daemon-socket rm -fr $PKG/etc/init.d rm -fr $PKG/usr/lib/systemd -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/perl5/vendor_perl -mv $PKG/usr/lib${LIBDIRSUFFIX}/perl5/site_perl/**/**/* $PKG/usr/lib${LIBDIRSUFFIX}/perl5/vendor_perl -rm -r $PKG/usr/lib${LIBDIRSUFFIX}/perl5/site_perl - -if [ "$ARCH" = "x86_64" ]; then - mv $PKG/usr/lib/pkgconfig/ $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/ -fi +mv $PKG/usr/lib/pkgconfig/ $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done @@ -106,6 +104,10 @@ if [ "$ARCH" = "x86_64" ]; then rm -rf $PKG/usr/lib fi +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING README.md $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |