summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db29d59796836ea1406dc17cd4b499195d322ae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Christian Krause ("wookietreiber") <kizkizzbangbang@googlemail.com>
# Contributor: Daniel Wallace <daniel.wallace at gatech dot edu>

_pkgname_base=irssi-libnotify
pkgname=$_pkgname_base-git

pkgver=r42.74198b5
pkgrel=1
pkgdesc="libnotify plugin for irssi"
arch=("any")
url="https://github.com/stickster/irssi-libnotify"
license=('GPL')
depends=('irssi' 'libnotify>=0.7' 'python2-gobject' 'perl-html-parser')
makedepends=('git')

source=($pkgname::'git+https://github.com/stickster/irssi-libnotify'
        'irssi-libnotify-git.install')

install=irssi-libnotify-git.install

md5sums=('SKIP'
         '274448951b53b5a492a80e794e61b9fd')

pkgver() {
  cd $srcdir/$pkgname

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd $srcdir/$pkgname

  sed -i 's:python:&2:' notify-listener.py
  sed -i 's?~/bin/irssi-notifier.sh?/usr/bin/irssi-notifier?' notify.pl
}

package() {
  cd $srcdir/$pkgname

  install -Dm755 irssi-notifier.sh  $pkgdir/usr/bin/irssi-notifier
  install -Dm755 notify-listener.py $pkgdir/usr/bin/notify-listener
  install -Dm644 notify.pl          $pkgdir/usr/share/irssi/scripts/notify.pl
}