[2025-jun-17] The SlackDocs mailing lists at https://lists.alienbase.nl/mailman/listinfo have been retired. No one has been using these lists for years and it's time to say goodbye. The list archives remain available at https://scalzi.slackware.nl/mailman/listinfo/slackdocs

[2025-jun-17] The SlackDocs Wiki has moved to a new server, in order to make it more performant.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:slackware_admin:building_a_package [2021/08/21 11:14 (UTC)] – code highlight zeebrahowtos:slackware_admin:building_a_package [2023/12/14 11:43 (UTC)] (current) mozes
Line 7: Line 7:
  
 Configure and compile the source as you usually do: Configure and compile the source as you usually do:
-<code>./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc+<code>./configure --prefix=/usr --libdir=/usr/lib64 --localstatedir=/var --sysconfdir=/etc
 make</code> make</code>
 +
 +<note important>For 32bit systems, adjust the library directory location: --libdir=/usr/lib</note>
  
 Make a temporary destination directory available: Make a temporary destination directory available:
Line 45: Line 47:
 appname: appname:
 </file> </file>
-The "appname" string must *exactly* match the application name portion of the Slackware package (for example, a package titled "gaim-1.5-i486-1.tgz" must have a slack-desc file with the <appname> string of "gaim: " rather than "Gaim: " or "GAIM: " or something else.+The "appname" string must *exactly* match the application name portion of the Slackware package (for example, a package titled "gaim-1.5-i486-1.txz" must have a slack-desc file with the <appname> string of "gaim: " rather than "Gaim: " or "GAIM: " or something else.
  
 The first line must show the application name followed by a short description (enclosed in parentheses). The first line must show the application name followed by a short description (enclosed in parentheses).
Line 52: Line 54:
 Create the actual package: Create the actual package:
 <code>cd /tmp/build <code>cd /tmp/build
-makepkg ../app-version-arch-tag.tgz</code>+makepkg ../app-version-arch-tag.txz</code>
  
 //(The dashes should appear as above, so if the version has a subversion like say "1.0 RC2" make sure you use 1.0_RC2 not 1.0-RC2. The arch should be something like "i486" for example. The tag should consist of the build number and your initals, e.g. 1zb for Zaphod Beeblebrox's first build, 2zb for his second build, etc.  Official slackware packages have only numbers as tags.)// //(The dashes should appear as above, so if the version has a subversion like say "1.0 RC2" make sure you use 1.0_RC2 not 1.0-RC2. The arch should be something like "i486" for example. The tag should consist of the build number and your initals, e.g. 1zb for Zaphod Beeblebrox's first build, 2zb for his second build, etc.  Official slackware packages have only numbers as tags.)//
Line 63: Line 65:
 If all went well, you can now install the package. If all went well, you can now install the package.
  cd ..  cd ..
- installpkg app-version-arch-tag.tgz+ installpkg app-version-arch-tag.txz
  
  
Line 77: Line 79:
 make install DESTDIR=$(pwd)/PACKAGE make install DESTDIR=$(pwd)/PACKAGE
 cd $(pwd)/PACKAGE cd $(pwd)/PACKAGE
-makepkg -l y -c n ../app-version-arch-tag.tgz +makepkg -l y -c n ../app-version-arch-tag.txz 
-installpkg ../app-version-arch-tag.tgz</code>+installpkg ../app-version-arch-tag.txz</code>
  
 Of course, you will have a package without description, (probably) uncompressed man pages and unstripped binaries. Of course, you will have a package without description, (probably) uncompressed man pages and unstripped binaries.
QR Code
QR Code howtos:slackware_admin:building_a_package (generated for current page)