Jason Ryan avatar Jason Ryan committed 4e596a2

New Vimprobable PKGBUILD
to comply with pacman 4.1 standards

Comments (0)

Files changed (8)

 # TTYtter hack
 export PERL_SIGNALS=unsafe
 
+# ruby version management
+if [[ -e /usr/local/share/chruby ]]; then
+    source /usr/local/share/chruby/{chruby,auto}.sh
+    chruby $(<$HOME/.ruby-version)
+fi
+
 ######## Aliases ########
 
 #The 'ls' family
-#---------------------------
+# --------------------------
 alias ll="ls -l --group-directories-first"
 alias ls="ls -h --color"   # add colors for filetype recognition
 alias la="ls -a"            # show hidden files
 alias tmux="tmux -f ~/.tmux/conf"
 alias 200="ssh 200 -t tmux a -d"
 alias sent="ssh -t cent ssh -t 200"
-alias ttytter="Scripts/ttytter.pl"
 alias dush="du -sm *|sort -n|tail"
 alias fire="sudo ufw status verbose"
 alias pong="ping -c 3 www.google.com"
 alias pi="ssh pi -t 'LANG=en_NZ.utf-8 tmux a -d'"
 alias irc="rm -f $HOME/.irssi/saved_colors && irssi"
 alias rss="newsbeuter -C $XDG_CONFIG_HOME/newsbeuter/config"
-alias backmusic="rsync -azPv --delete --exclude=Juno* Music /media/Apollo"
+alias backmusic="rsync -azPv --exclude=Juno* Music /media/Apollo"
+alias ttytter="Scripts/ttytter.pl -keyf=$HOME/.config/ttytter/key -rc=$HOME/.config/ttytter/jwr"
 
 # Power
 alias reboot="sudo shutdown -r now"
 
 ######## Pacman ########
 
-# sudo pacman -Syu by typing pacup (sudo must be installed and configured first)
 alias pacup="sudo pacman -Syu"
 
 # List updates

.config/ttytter/jwr

+hold=1
+wrap=104
+colourme=blue
+colourdm=red
+colourreply=magenta
+coloursearch=yellow
+colourwarn=green
+vcheck=1
+verify=1
+ansi=1
+readline=
+dostream=1
+ssl=1
+track='jasonwryan'
+exts=/home/jason/Scripts/r2all.pl
+
 .au                00;32
 .nes               00;31
 .smc               00;31
+.sdcv_history      00;32
 .fig               00;31
 .sfc               00;31
 .smc.gz            00;31
 # source .bashrc               
-case "$-" in *i*) if [ -r ~/.bashrc ]; then . ~/.bashrc; fi;; esac
+case "$-" in *i*) 
+    [[ -r $HOME/.bashrc ]] && source $HOME/.bashrc ;; 
+esac
 
 # setup environment
 export LC_ALL=
 # export other directories to PATH
 PATH=$PATH:$HOME/Scripts:/usr/lib/surfraw/
 
-# ruby version management
-if [[ -e /usr/local/share/chruby ]]; then
-    source /usr/local/share/chruby/{chruby,auto}.sh
-    chruby $(<$HOME/.ruby-version)
-fi
-
 # start keychain
 /usr/bin/keychain -Q -q --nogui id_dsa id_rsa alioth archer bb B1BD4E40
-[ -f $HOME/.keychain/${HOSTNAME}-sh ] && source $HOME/.keychain/${HOSTNAME}-sh
-[ -f $HOME/.keychain/${HOSTNAME}-sh-gpg ] && source $HOME/.keychain/${HOSTNAME}-sh-gpg
+[[ -f $HOME/.keychain/${HOSTNAME}-sh ]] && source $HOME/.keychain/${HOSTNAME}-sh
+[[ -f $HOME/.keychain/${HOSTNAME}-sh-gpg ]] && source $HOME/.keychain/${HOSTNAME}-sh-gpg
 
 # startx if on TTY1 and tmux on TTY2
 if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
     tmux -f $HOME/.tmux/conf new -s secured
 fi
 
-

.ttytterrc

-hold=1
-wrap=104
-colourme=blue
-colourdm=red
-colourreply=magenta
-coloursearch=yellow
-colourwarn=green
-vcheck=1
-verify=1
-ansi=1
-readline=
-dostream=1
-ssl=1
-track='jasonwryan'
-exts=/home/jason/Scripts/r2all.pl
-

Build/vimprobable2-git/PKGBUILD

+# Contributor: totoloco <totoloco en gmail>
+
+pkgname=vimprobable2-git
+pkgver=c5936cc
+pkgrel=1
+pkgdesc="WWW browser that behaves like the Vimperator plugin available for Mozilla Firefox. It is based on the WebKit engine (using GTK bindings). It is a fork of the currently abandoned vimpression (former webkitbrowser)."
+arch=('i686' 'x86_64')
+url="http://www.yllr.net/vimprobable/"
+license=('mit')
+depends=('libwebkit>=1.1.11 gtk2 libsoup')
+makedepends=('git')
+provides=('vimprobable2-git')
+conflicts=('vimprobable2')
+_gitname="vimprobable"
+_gitbranch="vimprobable2"
+source=("$_gitname::git://git.code.sf.net/p/$_gitname/code")
+md5sums=('SKIP')
+
+pkgver() {
+  cd "$_gitname"
+  git describe --always
+}
+
+prepare() {
+  cd "$srcdir/$_gitname"
+  sed -i 's:LIBS = gtk+-2.0 webkit-1.0 libsoup-2.4:LIBS = gtk+-2.0 webkit-1.0 libsoup-2.4 javascriptcoregtk-1.0:' Makefile
+  [[ -f $SRCDEST/config.h ]] && msg "Using your config.h" && cp "$SRCDEST"/config.h .
+  [[ -f $SRCDEST/keymap.h ]] && msg "Using your keymap.h" && cp "$SRCDEST"/keymap.h .
+}
+
+build() {
+  cd "$srcdir/$_gitname"
+  make
+}
+
+package() {
+  cd "$srcdir/$_gitname"
+  make PREFIX=/usr MANDIR=/usr/share/man DESTDIR="$pkgdir" install
+  mkdir -p "$pkgdir"/usr/share/licenses/"$_gitbranch"
+  chmod 0755  "$pkgdir"/usr/share/licenses/"$_gitbranch"/
+  install -m 644 LICENSE "$pkgdir"/usr/share/licenses/"$_gitbranch"/LICENSE
+}

Build/vimprobable2-git/keymap.h

     { 0,                    GDK_g,          GDK_f,          input,      {.s = ":tabopen http://flickr.jasonwryan.com" } },
     { 0,                    GDK_g,          GDK_j,          input,      {.s = ":tabopen http://jasonwryan.com" } },
     { 0,                    GDK_g,          GDK_p,          input,      {.s = ":tabopen http://127.0.0.1:4000" } },
-    { 0,                    GDK_g,          GDK_r,          input,      {.s = ":tabopen http://www.google.com/reader/view/#overview-page" } },
+    { 0,                    GDK_g,          GDK_r,          input,      {.s = ":tabopen http://newsblur.com" } },
     { 0,                    GDK_g,          GDK_s,          input,      {.s = ":tabopen http://unix.stackexchange.com" } },
 
     { 0,                    0,              GDK_d,          quit,       {0} },
     printf "%s\n" "Safebox mounted, exiting."
 
 elif [[ -n "$target" ]]; then
-    grep "PID" <(lsof +D "$target") &>/dev/null
-        if [[ $? -eq 0 ]]; then
+    grep "PID" <(lsof +D "$target" &>/dev/null)
+         if [[ $? -eq 0 ]]; then
             printf "%s\n" "${target##*/} busy..."
             exit 1
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.