Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://gitlab.com/sc0ttj/Pkg
- Loading branch information
Showing
6 changed files
with
267 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# ---------------------------------------------------------------- | ||
# | ||
# This script will be sourced by Pkg after any .deb is installed. | ||
# | ||
# This script will be run by the busybox Ash interpreter, so it | ||
# cannot use things like Bash arrays. | ||
# ---------------------------------------------------------------- | ||
|
||
|
||
# This is a plugin for Pkg. The main function is 'run'. | ||
# | ||
# Pkg will run this function after this script is sourced. | ||
# You can define other functions and call them from 'run'. | ||
# | ||
# Because this script is sourced by Pkg, it's functions and | ||
# variables are available to this script. This includes: | ||
# | ||
# $PKGNAME - the full package name, with version (vlc-2.4.5) | ||
# $PKGNAME_ONLY - the shortened package name only (vlc) | ||
# $WORKDIR - the dir in which Pkg puts files, builds packages, etc | ||
# | ||
# As well as lots of functions like: | ||
# | ||
# get_pkg_name vlc - returns vlc-2.4.5 | ||
# get_pkg_name_only vlc-2.4.5 - returns vlc | ||
# get_pkg_version vlc - return 2.4.5 | ||
# | ||
# ...and lots more (see /usr/sbin/pkg) | ||
|
||
|
||
# ==================== Begin plugin ======================= | ||
|
||
# define some settings for this plugin that Pkg can use | ||
|
||
PLUGIN_REQUIRES_ASK=false # if true, skip this plugin unless ASK=true (--ask was given) | ||
PLUGIN_REQUIRES_FORCE=false # if true, skip this plugin unless FORCE=true (--force was given) | ||
|
||
# Pkg will execute the 'run' function after this script is sourced. | ||
# You can define other functions below and call them from 'run'. | ||
|
||
run() { | ||
if [ "$pkg_ext" != "deb" ];then | ||
return 0 | ||
fi | ||
echo "DEB INSTALLED." | ||
} | ||
|
Oops, something went wrong.