void-packages/srcpkgs/python-notify/template

28 lines
923 B
Bash

# Template file for 'python-notify'
pkgname=python-notify
version=0.1.1
revision=13
wrksrc="notify-python-${version}"
build_style=gnu-configure
pycompile_module="gtk-2.0/pynotify"
hostmakedepends="pkg-config python-devel python-gobject2-devel pygtk-devel"
makedepends="libnotify-devel gtk+-devel dbus-glib-devel pygtk-devel"
depends="pygtk"
short_desc="Python2 bindings for libnotify"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-only"
homepage="http://www.galago-project.org/"
distfiles="http://www.galago-project.org/files/releases/source/notify-python/notify-python-${version}.tar.gz"
checksum=8c5ee28017fdc5b110c31cb76503e535e15e0c60b9a1f1e95ff6c018dd806022
replaces="notify-python>=0"
patch_args="-Np1"
lib32disabled=yes
CFLAGS="-fcommon"
pre_configure() {
if [ "$CROSS_BUILD" ]; then
sed -i -e "s,PYTHON_INCLUDES=.*,PYTHON_INCLUDES=-I${XBPS_CROSS_BASE}/usr/include/python2.7,g" configure
fi
}