summaryrefslogtreecommitdiffstats
path: root/pkg/linux
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/linux')
-rw-r--r--pkg/linux/module.defs10
-rw-r--r--pkg/linux/module.rules17
2 files changed, 26 insertions, 1 deletions
diff --git a/pkg/linux/module.defs b/pkg/linux/module.defs
index e4232b343..2570d0857 100644
--- a/pkg/linux/module.defs
+++ b/pkg/linux/module.defs
@@ -3,6 +3,15 @@ PKG.rpm.machine = `rpm -E "%_target_cpu"`
PKG.release = 1
PKG.rpm.dist = `rpm -E "%dist"`
+
+###############################################################################
+
+PKG.cli.tar = $(PKG.out/)$(HB.name)-$(HB.version)-$(BUILD.machine)_CLI.tar.gz
+
+STAGE.out.cli/ = $(STAGE.out/)cli/
+
+###############################################################################
+
PKG.rpm.src.tar.bz2 = $(STAGE.out.src/)rpm/$(PKG.basename).tar.bz2
STAGE.out.rpm.src/ = $(STAGE.out.src/)rpm/
@@ -36,3 +45,4 @@ BUILD.out += $(PKG.cli.deb)
BUILD.out += $(PKG.gui.deb)
BUILD.out += $(PKG.cli.rpm)
BUILD.out += $(PKG.gui.rpm)
+BUILD.out += $(PKG.cli.tar)
diff --git a/pkg/linux/module.rules b/pkg/linux/module.rules
index af38b061a..ac3cf13d2 100644
--- a/pkg/linux/module.rules
+++ b/pkg/linux/module.rules
@@ -1,12 +1,27 @@
pkg.create.deb:: $(PKG.gui.deb) $(PKG.cli.deb)
pkg.create.rpm:: $(PKG.gui.rpm)
pkg.create.src.deb:: $(PKG.src.deb.stamp)
+pkg.create.tar:: pkg.create $(PKG.cli.tar)
+
+#
+# CLI Tar Package
+#
+
+$(PKG.cli.tar): | $(dir $(PKG.cli.tar))
+$(PKG.cli.tar): | $(STAGE.out.cli/)
+ cd $(STAGE.out.cli/) && $(TAR.exe) cjf $(call fn.ABSOLUTE,$(PKG.cli.tar)) .
+
+
+$(STAGE.out.cli/):
+ -$(MKDIR.exe) -p $@
+ $(CP.exe) HandBrakeCLI $(STAGE.out.cli/)
+ $(call STAGE.doc,$(STAGE.out.cli/))
#
# RPM binary package rules
#
$(PKG.rpm.src.tar.bz2): $(STAGE.out.rpm.src/)
- $(TAR.exe) cjf $@ -C $(STAGE.out.rpm.src/) $(PKG.basename)
+ $(TAR.exe) cvzf $@ -C $(STAGE.out.rpm.src/) $(PKG.basename)
$(STAGE.out.rpm.src/): GNUmakefile
# -$(MKDIR.exe) -p $(STAGE.out.rpm.src/)$(PKG.basename)