feat: Implement slack-desc handling for Slackware packages This commit introduces the following changes:

1.  **Modified `scan` method in `Alien/Package/Tgz.pm`:**
    - The method now attempts to read and parse `install/slack-desc` from input .tgz packages.
    - If found, the package's description and summary are populated from `slack-desc`.
    - Fallback to existing behavior if `slack-desc` is not present.

2.  **Modified `prep` method in `Alien/Package/Tgz.pm`:**
    - When creating a .tgz package, an `install/slack-desc` file is now generated.
    - This file is populated using the package's summary and description, formatted according to Slackware standards.
    - A helper function `_format_slack_desc` was added to handle the formatting logic.

3.  **Modified `build` method in `Alien/Package/Tgz.pm`:**
    - When creating a .tgz package, `makepkg` is now used.
	- Package is now named according to Slackware standard naming scheme.
This commit is contained in:
Armando
2025-05-27 17:47:09 -06:00
committed by Syed-Shahrukh-OSSRevival
parent ab603a11e0
commit 32f04aed12
2 changed files with 297 additions and 12 deletions

View File

@@ -8,7 +8,9 @@ Alien::Package::Rpm - an object that represents a rpm package
package Alien::Package::Rpm;
use strict;
use base qw(Alien::Package);
use Exporter qw(import);
our @EXPORT_OK = qw(arch);
use base qw(Alien::Package Exporter);
=head1 DESCRIPTION