Skip to content

Instantly share code, notes, and snippets.

@tlvince
Created October 20, 2010 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlvince/636846 to your computer and use it in GitHub Desktop.
Save tlvince/636846 to your computer and use it in GitHub Desktop.
--- PKGBUILD-old 2010-10-21 01:01:56.450000202 +0800
+++ PKGBUILD 2010-10-21 01:06:43.553333532 +0800
@@ -2,13 +2,13 @@
# Contributor: Sean Escriva <sean.escrivaATgmail.com>
pkgname=autojump-git
-pkgver=20090428
+pkgver=20101021
pkgrel=1
pkgdesc="A cd command that learns"
url="http://github.com/joelthelion/autojump/tree/master"
arch=('i686' 'x86_64')
license=('GPL')
-depends=('bash' 'python')
+depends=('bash' 'python2')
makedepends=('git')
conflicts=('autojump')
provides=('autojump')
@@ -38,6 +38,10 @@
git clone $_gitname $_gitname-build
cd ${srcdir}/$_gitname-build
+ # python2 fix
+ sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' autojump
+ sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' jumpapplet
+
install -Dm 755 autojump "$pkgdir"/usr/bin/autojump
install -Dm 755 jumpapplet "$pkgdir"/usr/bin/jumpapplet
install -Dm 755 autojump.sh "$pkgdir"/etc/profile.d/autojump.sh
@@ -47,4 +51,4 @@
install -Dm 644 autojump.1.gz "$pkgdir"/usr/share/man/man1/autojump.1.gz
install -Dm 644 icon.png "$pkgdir"/usr/share/autojump/icon.png
}
-# vim:set ts=2 sw=2 et:
\ No newline at end of file
+# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment