load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar", "pkg_deb") pkg_tar( name = "newslash_core", package_dir = "/usr/share/newslash", strip_prefix = "/src/newslash_web", files = ["//src/newslash_web:newslash_core"], mode = "0644", modes = {"script/newslash_web": "0755"}, ) pkg_tar( name = "newslash_srad_asset", package_dir = "/usr/share/newslash", strip_prefix = "/src/newslash_web", files = ["//src/newslash_web:newslash_srad_asset"], mode = "0644", symlinks = { "./usr/share/newslash/public/fonts": "../external/bootstrap-3.3.7/fonts", "./usr/share/newslash/css/bootstrap": "../external/bootstrap-3.3.7/less", "./usr/share/newslash/public/js/escape-html.js": "../../external/escape-html.js/js/escape-html.js", "./usr/share/newslash/public/bootstrap": "../external/bootstrap-3.3.7/dist", }, ) pkg_deb( name = "newslash-deb", visibility = ["//visibility:public"], architecture = "all", built_using = "Bazel", data = "newslash", depends = [ "libmojolicious-perl", "libjs-bootstrap", "libdbd-mysql", "libdbi-perl", "libdbd-mysql-perl", "libtemplate-perl", "node-less", "libcrypt-openssl-random-perl", "libemail-valid-perl", "tinymce", "libredis-perl", "libhtml-tidy-perl", "liburi-perl", "libdate-calc-perl", "libdatetime-perl", "liburi-perl", "libjson-perl", "libcache-memcached-fast-perl", "libdata-javascript-anon-perl", "libwww-perl", ], description_file = "description", homepage = "http://osdn.jp/", maintainer = "OSDN ", package = "newslash", version = "0.1.0", )