-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
44 lines (39 loc) · 1.12 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
load("@gazelle//:def.bzl", "gazelle")
load("@rules_go//go:def.bzl", "go_binary", "go_library", "nogo")
load("@rules_pkg//:pkg.bzl", "pkg_deb", "pkg_tar")
# gazelle:prefix github.com/mgit-at/cert-viewer
gazelle(name = "gazelle")
go_library(
name = "go_default_library",
srcs = ["main.go"],
importpath = "github.com/mgit-at/cert-viewer",
visibility = ["//visibility:private"],
deps = [
"@com_github_alecthomas_kingpin_v2//:go_default_library",
"@com_github_pkg_errors//:go_default_library",
],
)
go_binary(
name = "cert-viewer",
embed = [":go_default_library"],
visibility = ["//visibility:public"],
)
pkg_tar(
name = "debian-data",
srcs = [":cert-viewer"],
extension = "tar.gz",
modes = {
"/usr/bin/cert-viewer": "0755",
},
package_dir = "/usr/bin",
)
pkg_deb(
name = "debian",
architecture = "amd64",
data = ":debian-data",
description = "Tool to view multiple x509 Certificates.",
homepage = "https://mgit.at",
maintainer = "Michael Gebetsroither <[email protected]>",
package = "cert-viewer",
version = "0.9.1",
)