[arch-commits] Commit in autojump/trunk (PKGBUILD autojump.install)

Jaroslav Lichtblau jlichtblau at archlinux.org
Thu Dec 18 11:18:31 UTC 2014


    Date: Thursday, December 18, 2014 @ 12:18:30
  Author: jlichtblau
Revision: 124076

upgpkg: autojump 22.2.2-2
https://github.com/joelthelion/autojump/pull/339

Added:
  autojump/trunk/autojump.install
Modified:
  autojump/trunk/PKGBUILD

------------------+
 PKGBUILD         |   13 ++++++++++++-
 autojump.install |    6 ++++++
 2 files changed, 18 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-12-18 10:11:48 UTC (rev 124075)
+++ PKGBUILD	2014-12-18 11:18:30 UTC (rev 124076)
@@ -7,12 +7,13 @@
 
 pkgname=autojump
 pkgver=22.2.2
-pkgrel=1
+pkgrel=2
 pkgdesc="A faster way to navigate your filesystem from the command line"
 arch=('any')
 url="http://wiki.github.com/joelthelion/autojump"
 license=('GPL3')
 depends=('python')
+install=$pkgname.install
 source=(https://github.com/joelthelion/${pkgname}/archive/release-v${pkgver}.tar.gz)
 sha256sums=('db2683a36f78af384bd0c0a48dd6b082bdfc75c23dd3b59d0eea1ecc88f01ccc')
 
@@ -24,4 +25,14 @@
   cd ${pkgname}-release-v${pkgver}
 
   ./install.py --destdir "${pkgdir}" --prefix 'usr/' --zshshare 'usr/share/zsh/site-functions'
+
+  cd "${pkgdir}"/usr/share/$pkgname
+  for i in $pkgname.*
+    do ln -s /usr/share/$pkgname/$i \
+      "${pkgdir}"/etc/profile.d/$i
+  done
+
+#https://github.com/joelthelion/autojump/pull/339
+  sed -i "s:/usr/local/:/usr/:g" "${pkgdir}"/etc/profile.d/$pkgname.sh
+  sed -i "s:/build/autojump/pkg/autojump/:/:g" "${pkgdir}"/etc/profile.d/$pkgname.sh
 }

Added: autojump.install
===================================================================
--- autojump.install	                        (rev 0)
+++ autojump.install	2014-12-18 11:18:30 UTC (rev 124076)
@@ -0,0 +1,6 @@
+post_install() {
+cat <<EOF
+  >> Please manually add the below line to ~/.bashrc and restart terminal before running autojump.
+  >> [[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh
+EOF
+}



More information about the arch-commits mailing list