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.
- 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.
-
Clone the repository:
git clone https://github.com/mesflit/bld.git
-
Navigate to the project directory:
cd bld
-
Build and install the package using
makepkg
:makepkg -si
-
Clone the repository:
git clone https://github.com/mesflit/bld.git
-
Navigate to the project directory:
cd bld
-
Make the script executable:
chmod +x bld.sh
-
Optionally, move the script to a directory in your PATH:
sudo mv bld.sh /usr/local/bin/bld
Run bld
without any arguments to see the version and available commands:
bld
-
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>
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.
-
Adding a PKGBUILD file:
bld add ~/downloads/example/PKGBUILD
-
Building a package:
bld build example-package
-
Removing a PKGBUILD file:
bld remove example-package
-
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
- An Arch-based Linux distribution.
makepkg
andpacman
utilities.git
for cloning repositories.
Contributions are welcome! Feel free to open issues or submit pull requests on the GitHub repository.
This project is licensed under the MIT License. See the LICENSE file for details.
For more information, visit the GitHub page.