-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
76 lines (68 loc) · 1.76 KB
/
BUILD
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
load("//distribution:dist_vars.bzl", "dist_vars")
load("@rules_pkg//pkg:mappings.bzl", "pkg_attributes", "pkg_files", "pkg_mklink")
load("@rules_pkg//pkg:deb.bzl", "pkg_deb")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
VERSION = "0.5.0"
dist_vars(
name = "jesture_dist_vars",
arch = select({
"@platforms//cpu:x86_64": "x86_64",
"//conditions:default": "UNKNOWN",
}),
product_name = "jesture",
version = VERSION,
)
pkg_files(
name = "jesture_linux_bin",
srcs = ["//jesture"],
attributes = pkg_attributes(
mode = "0551",
),
prefix = "/opt/jesture",
)
pkg_files(
name = "jesture_linux_models",
srcs = ["//jesture:models"],
prefix = "/opt/jesture/models",
)
pkg_mklink(
name = "jesture_linux_usr_bin",
link_name = "/usr/bin/jesture",
target = "/opt/jesture/jesture",
)
pkg_tar(
name = "jesture_linux_tar",
srcs = [
":jesture_linux_bin",
":jesture_linux_models",
":jesture_linux_usr_bin",
],
package_file_name = "{product_name}-{version}-{arch}-linux.tar",
package_variables = ":jesture_dist_vars",
)
pkg_deb(
name = "jesture_deb",
data = ":jesture_linux_tar",
depends = [
"qt6-base-dev",
"qt6-wayland",
"qt6-declarative-dev",
"qt6-multimedia-dev",
"libqt6svg6-dev",
"libx11-dev",
"libopencv-dev",
],
description = "Application to control you computer through hand gestures",
maintainer = "[email protected]",
package = "jesture",
package_file_name = "{product_name}-{version}-{arch}.deb",
package_variables = ":jesture_dist_vars",
version = VERSION,
)
filegroup(
name = "distribution",
srcs = [
":jesture_deb",
":jesture_linux_tar",
],
)