OCaml 4.14.0 rebuild
[arch-packages.git] / python-notify2 / trunk / PKGBUILD
blobbfd6e3d4572f54ac94e9d837c1741a6bc63cfc16
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 _name=notify2
4 pkgname=python-notify2
5 pkgver=0.3.1
6 pkgrel=7
7 pkgdesc="Python interface to DBus notifications"
8 arch=('any')
9 url="https://bitbucket.org/takluyver/pynotify2"
10 license=('BSD')
11 depends=('python-dbus')
12 makedepends=('python-setuptools')
13 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
14 sha512sums=('0b69a64e0a7e4955ee767c975db92c5c60d28c0e54f77498cfb98390771a8f536631fc34e42b5c46c138dfa1054b5516a0809b8e3b0cb9237a39825ddb827109')
15 b2sums=('649df1934d1fffb97dabbf2f483204c55427fbede851840d642da2e4e62a9bda9d49670e60f5b2cda36b62ee47b7d0cd861d757d338867547dce3c7d61ddf7b4')
17 prepare() {
18   mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
21 build() {
22   cd "$pkgname-$pkgver"
23   python setup.py build
25 # NOTE: tests require running dbus
27 package() {
28   cd "$pkgname-$pkgver"
29   python setup.py install --skip-build \
30                           --optimize=1 \
31                           --root="${pkgdir}"
32   install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
33   install -vDm 644 examples/* -t "${pkgdir}/usr/share/doc/${pkgname}/examples"