From 075c347b7f07ff8470676693331c623a507b243c Mon Sep 17 00:00:00 2001 From: AlexTalker Date: Sun, 27 Jul 2014 09:18:00 +0400 Subject: [PATCH 1/3] Make plugin makepkg, realized aliases for usually commands --- plugins/makepkg/makepkg.plugin.zsh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 plugins/makepkg/makepkg.plugin.zsh diff --git a/plugins/makepkg/makepkg.plugin.zsh b/plugins/makepkg/makepkg.plugin.zsh new file mode 100644 index 000000000..0b4bfb62f --- /dev/null +++ b/plugins/makepkg/makepkg.plugin.zsh @@ -0,0 +1,16 @@ +# Zsh aliases for makepkg, Arch Linux package build tool. +if [[ -x `which makepkg` ]]; then + alias mpkg='makepkg' # Build package using current sources + alias mpkgsy='makepkg -s' # Synchronize sources and build package + alias mpkgsr='makepkg -S' # Build sources package(src.tar.xz usually) + alias mpkgg='makepkg -g' # Sync sources and generate fresh hash sums for source files. + alias mpkgo='makepkg -o' # Only sync sources and unpack them. + alias mpkge='makepkg -e' # Use exist sources in ./src + alias mpkgre='makepkg -R' # Only repack(use exist files in ./pkg) package + alias mpkgf='makepkg -f' # Force rebuild package +else + # Notification if makepkg not availble + echo "Did you enable makepkg plugin, but makepkg doesn't exist in your system(or in $PATH)." + echo "Please, run `sudo pacman -S base-devel` or disable plugin into your ~/.zshrc" +fi + From 94551d7ffd6e981cb6efbaf93f8684601389567c Mon Sep 17 00:00:00 2001 From: AlexTalker Date: Sun, 27 Jul 2014 09:24:34 +0400 Subject: [PATCH 2/3] Append README.md for makepkg plugin --- plugins/makepkg/README.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 plugins/makepkg/README.md diff --git a/plugins/makepkg/README.md b/plugins/makepkg/README.md new file mode 100644 index 000000000..f8a5746c4 --- /dev/null +++ b/plugins/makepkg/README.md @@ -0,0 +1,4 @@ +## makepkg +**Maintainer**: [AlexTalker](https://github.com/AlexTalker) + +This plug-in adds several [makepkg](https://wiki.archlinux.org/index.php/Makepkg) aliases. From 0c17b7866bb30c3e40c71ebbc147a399336ab91a Mon Sep 17 00:00:00 2001 From: AlexTalker Date: Mon, 28 Jul 2014 09:23:42 +0400 Subject: [PATCH 3/3] Append alias for install build package --- plugins/makepkg/makepkg.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/makepkg/makepkg.plugin.zsh b/plugins/makepkg/makepkg.plugin.zsh index 0b4bfb62f..d6f5d79e1 100644 --- a/plugins/makepkg/makepkg.plugin.zsh +++ b/plugins/makepkg/makepkg.plugin.zsh @@ -8,6 +8,7 @@ if [[ -x `which makepkg` ]]; then alias mpkge='makepkg -e' # Use exist sources in ./src alias mpkgre='makepkg -R' # Only repack(use exist files in ./pkg) package alias mpkgf='makepkg -f' # Force rebuild package + alias mpkgi='makepkg -i' # Install build package else # Notification if makepkg not availble echo "Did you enable makepkg plugin, but makepkg doesn't exist in your system(or in $PATH)."