summaryrefslogtreecommitdiff
path: root/pkg_create
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-01-05 13:50:53 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-01-05 13:50:53 -0500
commit13918acf5d6104fd696175d682b4300e42b9159b (patch)
tree9fc6ed02c9c3864d01a764f5cd5900ebdb3fa302 /pkg_create
downloadpkg_creator-13918acf5d6104fd696175d682b4300e42b9159b.tar.gz
Initial commit
Diffstat (limited to 'pkg_create')
-rwxr-xr-xpkg_create19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkg_create b/pkg_create
new file mode 100755
index 0000000..4297f38
--- /dev/null
+++ b/pkg_create
@@ -0,0 +1,19 @@
+#!/bin/bash
+source common.inc
+
+PKG_NAME="$1"
+_ROOT="$(readlink_ex $0)"
+_PKG_ROOT="$_ROOT/$PKG_NAME"
+PKG_ROOT="$_PKG_ROOT/root"
+PKG_SCRIPTS="$_PKG_ROOT/scripts"
+
+init_vars
+
+
+if [ -z "$PKG_NAME" ]; then
+ echo Please give your package a name.
+ exit 1
+fi
+
+PKG_NAME="$PKG_NAME.pkg"
+$PKGBUILD_CMD $PKGBUILD_ARGS $PKG_NAME