summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumner Evans2018-04-03 09:36:05 -0600
committerSumner Evans2018-04-03 09:36:05 -0600
commitc2fabf149db2207bfed6972faedafdd49b0270ea (patch)
tree5ac3e2cc6ecf0731be6e316ef0fd2dbcafb1d649
parent424e8f808eb46bd5baae8ac1f0ce9799ff707b1a (diff)
downloadaur-c2fabf149db2207bfed6972faedafdd49b0270ea.tar.gz
Fix post_install instructions
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD10
-rw-r--r--zsh-you-should-use.install6
3 files changed, 10 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 256578cccd7d..ee8469fe283e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = zsh-you-should-use
pkgdesc = ZSH plugin that reminds you to use existing aliases for commands you just typed
pkgver = 0.4.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/MichaelAquilina/zsh-you-should-use
+ install = zsh-you-should-use.install
arch = any
license = GPL3
source = https://github.com/MichaelAquilina/zsh-you-should-use/archive/0.4.2.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index 14b8abd6aeb3..0f8073716b18 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,13 @@
pkgname="zsh-you-should-use"
pkgver=0.4.2
-pkgrel=1
+pkgrel=2
pkgdesc="ZSH plugin that reminds you to use existing aliases for commands you just typed"
url="https://github.com/MichaelAquilina/zsh-you-should-use"
arch=("any")
license=("GPL3")
source=("https://github.com/MichaelAquilina/${pkgname}/archive/${pkgver}.tar.gz")
+install="${pkgname}.install"
sha256sums=("5db7415e16c914fb38e4dc48e4d17f5d4ac5ac5c38135484cf98d4dc31fb6338")
package() {
@@ -19,10 +20,3 @@ package() {
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
-
-post_install() {
- cat << EOF
-To activate zsh-you-should-use add the following line at the end of ~/.zshrc:
- source /usr/share/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh
-EOF
-}
diff --git a/zsh-you-should-use.install b/zsh-you-should-use.install
new file mode 100644
index 000000000000..a9105de32958
--- /dev/null
+++ b/zsh-you-should-use.install
@@ -0,0 +1,6 @@
+post_install() {
+ cat << EOF
+To activate zsh-you-should-use add the following line at the end of ~/.zshrc:
+ source /usr/share/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh
+EOF
+}