summaryrefslogtreecommitdiff
path: root/package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package.sh')
-rwxr-xr-xpackage.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/package.sh b/package.sh
new file mode 100755
index 000000000..6781b1538
--- /dev/null
+++ b/package.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -e
+shopt -s extglob nullglob
+
+export PKG_MAKE=$0
+export PKG_NAME=${1%_}
+
+export PKG_BASE=$(realpath "$(dirname "$0")")
+. "${PKG_BASE}/helper.sh"
+
+./make.sh "${PKG_NAME}"
+
+pkg: mkdir -p /DEBIAN
+./control.sh "${PKG_NAME}" control >"$(pkg_ /DEBIAN/control)"
+dpkg-deb -b "${PKG_DEST}" "${PKG_PACK}"
+pkg: rm -rf /DEBIAN