Skip to content
/ bld Public

Bld is a great program for managing PKGBUILDs

License

Notifications You must be signed in to change notification settings

mesflit/bld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bld - A Simple PKGBUILD Manager

bld is a lightweight Bash script designed to simplify the management of PKGBUILD files for Arch-based Linux distributions. It allows you to add, build, remove, list, and clone PKGBUILD files with ease.

Features

  • Add and manage PKGBUILD files.
  • Build packages directly from PKGBUILD files.
  • Check installed packages' status.
  • Clone Git repositories containing PKGBUILD files.
  • Lightweight and easy to use.

Installation

From PKGBUILD

  1. Clone the repository:

    git clone https://github.com/mesflit/bld.git
  2. Navigate to the project directory:

    cd bld
  3. Build and install the package using makepkg:

    makepkg -si

Manual Installation

  1. Clone the repository:

    git clone https://github.com/mesflit/bld.git
  2. Navigate to the project directory:

    cd bld
  3. Make the script executable:

    chmod +x bld.sh
  4. Optionally, move the script to a directory in your PATH:

    sudo mv bld.sh /usr/local/bin/bld

Usage

Run bld without any arguments to see the version and available commands:

bld

Commands

  • Add a PKGBUILD file:

    bld add /path/to/PKGBUILD
  • Build a package:

    bld build <package-name>
  • Remove a PKGBUILD file:

    bld remove <package-name>
  • List all added PKGBUILD files:

    bld list
  • Clone a Git repository containing a PKGBUILD file:

    bld clone <repository-url>

Configuration

The configuration file is located at:

~/.local/share/bld/config

Default settings:

ShowVersion=false
ShowInstalled=false
  • ShowVersion: Display package versions in the list.
  • ShowInstalled: Display whether a package is installed.

Examples

  1. Adding a PKGBUILD file:

    bld add ~/downloads/example/PKGBUILD
  2. Building a package:

    bld build example-package
  3. Removing a PKGBUILD file:

    bld remove example-package
  4. Listing added PKGBUILD files with versions and installed status: Update the configuration file:

    echo -e "ShowVersion=true\nShowInstalled=true" > ~/.local/share/bld/config

    Run:

    bld list

Requirements

  • An Arch-based Linux distribution.
  • makepkg and pacman utilities.
  • git for cloning repositories.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests on the GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.


For more information, visit the GitHub page.

About

Bld is a great program for managing PKGBUILDs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages