blob: 242a4cfac60b8e3c2b6b55194690827e4f366bfc (
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
|
# $Id: PKGBUILD 215959 2014-07-01 09:07:02Z fyan $
# Maintainer: Angel Velasquez <angvp@archlinux.org>
pkgbase=python-notify
pkgname=python2-notify
pkgver=0.1.1
pkgrel=13
pkgdesc="Python bindings for libnotify"
arch=('i686' 'x86_64')
url="http://www.galago-project.org/"
license=('GPL')
depends=('pygtk>=2.22.0' 'libnotify>=0.7.1')
makedepends=('python2')
conflicts=('python-notify<=0.1.1-11')
replaces=('python-notify<=0.1.1-11')
source=(http://www.galago-project.org/files/releases/source/notify-python/notify-python-${pkgver}.tar.gz
libnotify07.patch
notify-python-0.1.1-fix-GTK-symbols.patch)
md5sums=('8f0ef0939cc8edd2efd896ce5ba80cf4'
'b40c4542575d5aef559908fe60a21634'
'c6922028da5951e69a6a0167bdb4461c')
build() {
cd "${srcdir}/notify-python-${pkgver}"
patch -Np1 -i "${srcdir}/libnotify07.patch"
patch -Np1 -i "${srcdir}/notify-python-0.1.1-fix-GTK-symbols.patch"
./configure --prefix=/usr
# WARNING - we touch src/pynotify.override in build because upstream did not rebuild pynotify.c
# from the input definitions, this forces pynotify.c to be regenerated, at some point this can be removed
touch src/pynotify.override
make clean
make
}
package_python2-notify() {
cd "${srcdir}/notify-python-${pkgver}"
make DESTDIR="${pkgdir}" install
}
|