zedify / PKGBUILD

# Maintainer: Josh VanderLinden <arch@cloudlery.com>
pkgname=zedify
pkgver=20130225
pkgrel=3
pkgdesc="Deliver message notifications to remote machines"
arch=('any')
url="http://bitbucket.org/codekoala/zedify"
license=('MIT')
depends=('python2' 'python2-pyzmq')
optdepends=(
  'weechat: fabulous IRC client'
  'python2-gobject: libnotify notifications'
  'dunst: lightweight notifications'
  'xfce4-notifyd: lightweight notifications for superior WMs'
  'wxpython: desktop notifications app'
  'python-espeak: Text-To-Speech notifications'
  'tmux: notifications in tmux status bar'
  'alsa-utils: audible notifications'
)
options=(!emptydirs)
source=()
md5sums=()

_gitroot=https://bitbucket.org/codekoala/zedify
_gitname=zedify

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [[ -d "$_gitname" ]]; then
    cd "$_gitname" && git pull origin
    msg "The local files are updated."
  else
    git clone "$_gitroot" "$_gitname"
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting build..."

  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"
}

package() {
  cd "$srcdir/$_gitname-build"
  python2 setup.py install --root="$pkgdir/" --optimize=1

  install -D weechat/zedifier.py "${pkgdir}/usr/share/${pkgname}/zedifier.py"
  cp -a zedify/resources "${pkgdir}/usr/lib/python2.7/site-packages/${pkgname}/"

  install -D zedify.conf.sample "${pkgdir}/etc/default/${pkgname}"
  install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et:
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.