kiviktnm / decman

Declarative package & configuration manager for Arch Linux.
GNU General Public License v3.0
66 stars 3 forks source link

Parse UserPackage properties from PKGBUILDs directly #6

Open kiviktnm opened 3 months ago

kiviktnm commented 3 months ago

Currently, UserPackages must specify their dependencies, version etc. in the decman source.

UserPackage(
    pkgname="decman-git",
    version="0.3.1",
    dependencies=[
        "python",
        "python-requests",
        "devtools",
        "systemd",
        "pacman",
        "git",
        "less",
    ],
    make_dependencies=[
        "python-setuptools",
        "python-build",
        "python-installer",
        "python-wheel",
    ],
    git_url="https://github.com/kiviktnm/decman-pkgbuild.git",
)

These properties could be parsed directy from the PKGBUILD.

The goal would be to have UserPackages that only need a git_url to a PKGBUILD repository.

UserPackage(
    git_url="https://github.com/kiviktnm/decman-pkgbuild.git",
)