SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
However, it is of course possible to use an other format and convert the text to meet the specs, and even to include the slack-desc in a SLKBUILD, as expected by slkbuild:
Code:
#Maintainer: George Vlahavas (email hidden by Didier)
pkgname=slkbuild
pkgver=1.2
pkgrel=1slint
arch=noarch
source=(slkbuild-$pkgver.tar.xz)
options=('nosrcpack')
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"slkbuild (arch-like wrapper script for easy packaging)"
"slkbuild is a script inspired by makepkg from Arch which greatly"
"simplifies the package building process in Slackware and derivatives."
"It parses an easy to create SLKBUILD meta-file and from that creates"
"slackware packages."
)
build() {
cd $startdir/src/$pkgname-$pkgver
make
make install DESTDIR=$startdir/pkg PREFIX=/usr
}
TIP: to avoid an UUOC, instead of
Code:
cat myfile|program
use
Code:
$(<myfile) program
Last edited by Didier Spaier; 08-11-2017 at 07:05 AM.
To those who were curious what UUOC is like I was, it stands for "Useless Use Of Cat". Basically stating that there are simpler methods for displaying the contents of a file (cat is designed to concatenate two or more files together... it just displays a single file as a byproduct).
However, Didier's command, $(<myfile) program, takes much more effort to type, so I'll probably continue using cat "uselessly"
To those who were curious what UUOC is like I was, it stands for "Useless Use Of Cat". Basically stating that there are simpler methods for displaying the contents of a file (cat is designed to concatenate two or more files together... it just displays a single file as a byproduct).
However, Didier's command, $(<myfile) program, takes much more effort to type, so I'll probably continue using cat "uselessly"
Furthermore, it is a butt-ugly command. I prefer the useless use of cat anytime in the name of readability.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.