0.0.0.0:80 python-varlink-rpc / master BUILD
master

Tree @master (Download .tar.gz)

BUILD @masterraw · history · blame

load("@rules_pkg//:pkg.bzl", "pkg_tar", "pkg_deb")

pkg_tar(
    name = "varlink-rpc-bin",
    package_dir = "/usr/lib/python3/dist-packages",
    srcs = ["varlink_rpc.py"]
)

pkg_tar(
    name = "varlink-rpc-systemd",
    strip_prefix = "systemd",
    package_dir = "/usr/lib/python3/dist-packages",
    srcs = ["systemd/varlink-rpc.socket", "systemd/varlink-rpc.service"]
)

pkg_tar(
    name = "debian-data",
    extension = "tar",
    deps = [
        ":varlink-rpc-bin",
        ":varlink-rpc-systemd"
    ]
)

pkg_deb(
    name = "python3-varlink-rpc",
    architecture = "all",
    data = ":debian-data",
    depends = [
        "python3-varlink",
    ],
    description = "A Varlink RPC service",
    homepage = "https://repo.mewp.pl/python-varlink-rpc/",
    maintainer = "Mewp <varlink-rpc@repo.mewp.pl>",
    package = "python3-varlink-rpc",
    version = "0.1.1",
    postinst = "debian-postinstall"
)