# Maintainer: Luis Martinez # Contributor: Batuhan Baserdem pkgname=python-desktop-notifier pkgver=3.3.1 pkgrel=1 pkgdesc='Python library for cross-platform desktop notifications' arch=('any') url="https://github.com/SamSchott/desktop-notifier" license=('MIT') depends=( 'python>=3.6' 'python-dbus-next' 'python-packaging') makedepends=('python-setuptools' 'python-wheel') source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha256sums=('8435950f69978d10842e55912d23245c7653e2972f8d2cfab24ebacdb51b4913') build() { cd "desktop-notifier-$pkgver" python setup.py build } package() { cd "desktop-notifier-$pkgver" PYTHONHASHSEED=0 python setup.py install --root="$pkgdir/" --optimize=1 --skip-build install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" }