LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-18-2018, 12:14 PM   #1
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,200

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
One SlackBuild for any LXQt component


Here's one SlackBuild to build any LXQt component. I just tested it with every 0.12.0 component on the following page:

https://downloads.lxqt.org/current.html

You just put the tarball in the same directory as the SlackBuild and run it.

Code:
#!/usr/bin/env bash

set -e

# Builds *any* LxQt component. Put the tarball in the same directory as the SlackBuild and run it.

# On -current, you need KDE Frameworks 5, libstatgrab, muParser.

TMP=${TMP:-/tmp}
BUILD=1
TAG=dc

SRC=$(echo "$PWD"/*.tar.xz)

PRGNAM=$(basename "$SRC" .tar.xz | rev | cut -d - -f 2- | rev)
VERSION=$(basename "$SRC" .tar.xz | rev | cut -d - -f 1 | rev)

PKG="$TMP/package-$PRGNAM"

if [[ -z "$ARCH" ]]; then
  case $( uname -m ) in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
    *) ARCH=$( uname -m ) ;;
  esac
fi

rm -rf "$PKG" "$TMP/$PRGNAM-$VERSION"

cd "$TMP"
tar xvf "$SRC"

cd "$PRGNAM-$VERSION"

mkdir -p build
cd build
cmake \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_BUILD_TYPE=Release .. \
  -DCMAKE_INSTALL_MANDIR=/usr/man
make
make install DESTDIR="$PKG"

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

if [ -d "$PKG/usr/man" ]; then
  find "$PKG/usr/man" -type f -exec gzip -9 {} \;
fi

cd "$PKG"
/sbin/makepkg -l y -c n "$TMP/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}"
The latest version will always be here:

https://github.com/duganchen/my_slac...XQt.SlackBuild
 
Old 03-18-2018, 12:33 PM   #2
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Does it also in the darkness bind them?

(Nice work.)
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXQt and Budgie hd_scania Linux - Desktop 2 09-11-2017 10:51 PM
LXer: Fedora 26 will have an LXQt Spin. Here’s what it looks like now LXer Syndicated Linux News 0 12-26-2016 03:24 PM
LXQt Menu Manager Dawn507 Linux From Scratch 3 08-23-2016 10:24 PM
LXQt on Slackware 14.1 ChuangTzu Slackware 9 07-12-2016 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration