LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-14-2013, 10:17 AM   #1
Iuz
LQ Newbie
 
Registered: Sep 2012
Location: Brazil
Distribution: Slackware
Posts: 22

Rep: Reputation: Disabled
Post Evernote


Is there any client for evernote or everpad to slackware 14?

Did not find any on slackbuilds, should I try and do a slackbuild myself for it?
 
Old 06-14-2013, 10:45 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
perhaps this one? nevernote ?
 
1 members found this post helpful.
Old 06-14-2013, 03:43 PM   #3
Iuz
LQ Newbie
 
Registered: Sep 2012
Location: Brazil
Distribution: Slackware
Posts: 22

Original Poster
Rep: Reputation: Disabled
well its a .deb anyway, I'll have to try and make a slackbuild...
 
Old 06-14-2013, 04:32 PM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Not just debs, they have tars as well:

sourceforge.net/projects/nevernote/files/Current/

Don't bother with their nixnote/install.sh script. Just delete it and run makepkg within the nixnote directory.

EDIT: You can also kill the pointless, empty nixnote/usr/share/man directory.

Last edited by ruario; 06-14-2013 at 04:36 PM.
 
1 members found this post helpful.
Old 06-14-2013, 07:00 PM   #5
Iuz
LQ Newbie
 
Registered: Sep 2012
Location: Brazil
Distribution: Slackware
Posts: 22

Original Poster
Rep: Reputation: Disabled
worked like a charm, thank you guys very much.
 
Old 06-14-2013, 08:47 PM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
I have make a SlackBuild for nixnote (formerly nevernote) and it's available on SlackHacks. I have also submitted to SBo, but it would take some time before it gets approved by the admins
 
1 members found this post helpful.
Old 06-15-2013, 01:30 AM   #7
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
@willysr: Why use three mkdir commands, followed by three move commands to shift over the files to another directory? You currently have the following:

Code:
mkdir -p $PKG/usr/share/nixnote
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/share/applications

cp usr/share/applications/nixnote.desktop $PKG/usr/share/applications
cp -r usr/share/nixnote/* $PKG/usr/share/nixnote
cp -r usr/bin/nixnote.sh $PKG/usr/bin
When you could just do all of this in one command:

Code:
cp -r usr $PKG
Better yet, you could extract straight into $PKG:

Code:
tar xf $CWD/$PRGNAM-${VERSION}_$SOURCEARCH.tar.gz --exclude \*install.sh --exclude \*/share/man --strip 2 -C $PKG
Then run your chown and chmod commands on $PKG itself.

However I would actually give the tar a miss and start with the rpm package, given you are not compiling anything. The advantage of this is that the rpm (and deb) packages include some docs and a man page. The tar does not have these, it just has an empty man directory in the wrong (for Slackware) location. Additionally you do not need to strip or exclude anything. Rather than use rpm2cpio + cpio (as is traditional with rpms), just use bsdtar to do the extraction in one pass, like so:

Code:
bsdtar xf $CWD/$PRGNAM-${VERSION}-${RPMBUILD}_$SOURCEARCH.rpm -C $PKG
Or if you don't want to define RPMBUILD, you could extract the deb in a similar way (albeit with two programs rather than one):

Code:
ar p $CWD/$PRGNAM-${VERSION}_$SOURCEARCH.deb data.tar.gz | tar -xzf- -C $PKG
Also remember to mv the usr/share/doc and usr/share/man directories and their contents to their correct locations.

Code:
mv $PKG/usr/share/{man,doc} $PKG/usr
mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/${PRGNAM}-$VERSION
Optionally you might want to replace the stupid usr/bin/nixnote shell script with a simple symlink to usr/share/nixnote/nixnote.sh. Personally I would also skip setting things like SLKCFLAGS and LIBDIRSUFFIX since you don't need them (because you never compile and the lib directory is not used). All they currently do is make the SlackBuild harder to follow for inexperienced users, who might try to work out why these are set and how they are used.

Last edited by ruario; 06-15-2013 at 07:35 AM. Reason: Added example of deb extraction; removed [un]install scripts from tra extraction; further clarification on mv commands
 
Old 06-15-2013, 10:00 AM   #8
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Thanks Ruario
I will use your suggestion to simplify to move the content with a single mv command and also to remove SLKCFLAGS and LIBDIRSUFFIX
 
Old 06-15-2013, 02:24 PM   #9
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Cool, I still think you should use the rpm or deb but hey you are the one offering to maintain it so its your call.

P.S. You could always extract the man page from the rpm or deb and have it as an extra file alongside the SlackBuild from where it could be installed. It will probably be OK since these things don't change so often (and this one wasn't even written by the original authors of the software anyway). Again, it is your call though.

P.P.S. You might also want to kill ./usr/share/nixnote/install.sh and ./usr/share/nixnote/uninstall.sh (as I did with my tar --exclude above).
 
Old 06-15-2013, 07:56 PM   #10
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
the *.sh is not that harmless, so i will leave it as it is
as for the selection of source, i would rather use the tarballs instead of RPM or DEB format
 
Old 06-16-2013, 05:07 AM   #11
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
I don't think I will ever understand why people are reluctant to use an rpm in cases like this. It would make perfect sense to me if the tar was actual source code and the rpm a recompiled binary but that is not the case here. They have exactly the same contents but for a few extra (useful) files in the rpm (i.e. a man page and some docs).

For me what you state is the same as saying "I would rather use tarballs instead of cpio archives as a source", because that is exactly what an rpm is, a compressed cpio archive with a tiny bit of meta information tacked on the front. Those few extra bytes can easily be ignored on any non-rpm distro, where you can consider it just another archive format rather than a package.

Besides the wealth of dedicated, pre-installed tools that can pull apart an rpm provided by Slackware (bsdtar, bsdcio, rpm2cpio, etc.) it is even possible to strip the rpm header off the front of the archive with little more than grep and tail, e.g. the following shell script would do the job for pretty much every rpm you are ever likely to care about:

Code:
#!/bin/sh
RPMINFO=$(LANG=C grep -abom1 ".7zXZ\|BZh9\|$(printf '\x1f\x8b\x08')" $1)
case "$RPMINFO" in
  *:?7zXZ) EXT=xz ;;
  *:BZh9)  EXT=bz2 ;;
  *:*)     EXT=gz ;;
  *)       echo "No compressed archive found in: $1"; exit 1 ;;
esac
tail -c+$(expr 1 + $(echo $RPMINFO | cut -f1 -d:)) $1 > $(basename $1 .rpm).cpio.$EXT
(Yes, the above would fail for an LZMA compressed rpm archives, but these days those are rarer than hens teeth!)

As for using deb packages, everything useful is actually within a tar archive (data.tar.*), with an ar archive wrapped around it (plus a couple of meta files), so here it is the same as saying, "I would rather use tarballs instead of tarballs!"

Last edited by ruario; 06-16-2013 at 06:20 AM. Reason: Simplified my example shell script a little
 
Old 06-16-2013, 08:23 AM   #12
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
i think that would make the SlackBuild script a lot complex to understand
 
Old 06-16-2013, 09:19 AM   #13
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
sure but this would not


Code:
bsdtar xf $CWD/$PRGNAM-${VERSION}-${RPMBUILD}_$SOURCEARCH.rpm
Edit: The other code was just to demonstrate that rpm files are really just compressed cpio archives by stripping the small header off the front.

Last edited by ruario; 06-16-2013 at 09:39 AM.
 
Old 06-16-2013, 10:31 AM   #14
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
I know about RPM format, but i think most users will prefer to use tarballs instead of RPM and DEBS if they are available
 
Old 06-16-2013, 11:12 AM   #15
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
I agree, they might but their reasons are not based on logic.
 
  


Reply



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
LXer: Everpad Integrates Evernote With Ubuntu Unity (AppIndicator, Lens) LXer Syndicated Linux News 0 09-18-2012 11:50 PM
LXer: Evernote for Android Gets a Major Update LXer Syndicated Linux News 0 05-05-2011 08:41 PM
LXer: Evernote For Linux: Nevernote LXer Syndicated Linux News 0 02-15-2011 04:40 PM

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

All times are GMT -5. The time now is 06:16 PM.

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