summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: edad887e62e68643a18d70ff7abe994c047ec793 (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
# Maintainer: Adam Perkowski <adas1per@protonmail.com>
# https://github.com/adamperkowski/PKGBUILDs
pkgname=ntfy
pkgver=2.7.0
pkgrel=4
pkgdesc="A utility for sending push notifications to various notification systems (Pushover, Pushbullet, XMPP, etc.)"
url="https://github.com/dschep/$pkgname"
depends=('python' 'python-requests' 'python-yaml' 'python-appdirs' 'xorg-xprop' 'python-ruamel-yaml')
makedepends=('python3' 'python-setuptools')
optdepends=('python-dbus: Desktop notifications'
    'python-emoji: Emoji support')
license=('GPL-3.0')
arch=(any)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
md5sums=('c468c732cac0b4641af93b3ac95c6412')

prepare() {
    cd "$pkgname-$pkgver"
    sed -i 's/getargspec/getfullargspec/' "$pkgname/__init__.py"
}

build() {
    cd "$pkgname-$pkgver"
    python setup.py build
}

package() {
    cd "$pkgname-$pkgver"
    python setup.py install --root="$pkgdir" --optimize=1 
}