blob: 41f8fb29fd6f24adac328ebbd2c47fd53ad15914 (
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
44
45
|
# Maintainer: Christian Krause ("wookietreiber") <kizkizzbangbang@googlemail.com>
# Maintainer: Vsevolod Ivanov <seva@binarytrails.net>
# Contributor: Daniel Wallace <daniel.wallace at gatech dot edu>
_pkgname_base=irssi-libnotify
pkgname=$_pkgname_base-git
pkgver=r59.7ada59a
pkgrel=4
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' 'dbus-python')
makedepends=('git')
source=($pkgname::'git+https://github.com/stickster/irssi-libnotify'
'irssi-libnotify-git.install')
install=irssi-libnotify-git.install
md5sums=('SKIP'
'bf976922f1e60bfd6a6f2dbb682d8d79')
pkgver() {
cd $pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $pkgname
sed -i 's:python:&2:' notify-listener.py
sed -i 's?~/bin/irssi-notifier.sh?/usr/bin/irssi-notifier?' notify.pl
}
package() {
cd $pkgname
install -Dm755 irssi-notifier.sh $pkgdir/usr/bin/irssi-notifier
install -Dm755 notify-listener.py $pkgdir/usr/bin/notify-listener.py
install -Dm644 notify.pl $pkgdir/usr/share/irssi/scripts/notify.pl
install -Dm644 notify-listener.service $pkgdir/usr/lib/systemd/user/notify-listener.service
}
|