Simplenote or similar .deb package install Slackware64 14.2?
I have studied the threads that I have been able to find on using .deb files in Slackware, and bassmadrigal seems to have the best KISS method for extracting the contents of a .deb file:
Code:
ar p package-name-0.1.2.deb data.tar.xz | unxz | tar -xv Code:
ar p Simplenote-linux-1.1.3.deb data.tar.xz | unxz | tar -xv I have found this command: Code:
makepkg -l y -c n ../app-version-arch-tag.tgz According to the manpage, the "-l" option seems safe: Quote:
Any advice on creating a Simplenote (or similar) Slackware package? |
Quote:
|
Quote:
Quote:
|
Quote:
EDIT: Actually, here you go: https://github.com/Skaendo/slackbuil...ter/Simplenote I've also submitted it to SBo so it should be there by this weekend. But I don't plan on keeping up with it too often. If you see that there is a update let me know and I'll update it. Or you can take it over, it shouldn't need more than a version bump when it gets updated. |
Protip: these Electron packages are truly *awful*. Just look at the ocean of bloat inside that thing.
|
Quote:
|
Ssssh!!! that's our secret :)
|
Quote:
|
Quote:
|
Quote:
The .info file is used by SBo (SlackBuilds.org) to provide all the information on the program, the homepage, the download location, the md5sum to ensure the download isn't corrupted, and the maintainer's information. It can also include dependencies if the program requires them. These are used to display the information you see on a program's page on SBo (in addition to the README). The slack-desc is a file used by Slackware's package manager to display the information on the package. You can view this information in pkgtool. The doinst.sh is an optional post-install script that can do things like update menus/icons, copy new configs into place, and create any symlinks that might be needed. Finally, he also included a .desktop file, which will allow this program to be accessed within "start" menus of various Window Managers/Desktop Environments like KDE or XFCE. Many programs will include this automatically and won't need to be generated by the maintainer. If you have any specific questions on what code or files do, feel free to ask and one of us would be happy to answer :) |
Quote:
This is really the only part of the SlackBuild that I had to write: Code:
# Install into /opt After some time and figuring out how to find the options that you can use (like './configure -h' for a autotools build) it became relatively easy. (I'm no pro and the guys over at SBo still have to touch up any new ones that I submit) I also use a handy little tool called mkslack by David Woodfall that you run against the source archive and it figures out what kind of build job it is and makes the necessary files (.SlackBuild, .info, slack-desc, etc) then you only need to fill in the blanks of what cannot be done automagically. You are not going to get the first one perfect the first time, at least I didn't, and some are more difficult than others. A little bit of bash scripting knowledge goes a long way with making SlackBuilds. bassmadrigal has laid out a very good overview of the files. You can also look at the templates they have over at SBo to get a feel of what is a pretty standard SlackBuild, and they are well commented: https://slackbuilds.org/templates/ I would suggest saving one and opening it in a text editor so that you get the syntax highlighting. |
All times are GMT -5. The time now is 05:47 PM. |