diff options
author | teamalpha5441 | 2016-05-19 17:47:26 +0200 |
---|---|---|
committer | teamalpha5441 | 2016-05-19 17:47:26 +0200 |
commit | 288c476ab644c9d391156f93606ea9f00f28c916 (patch) | |
tree | cb608831e5969b01ecb6619e35acc3979ea26406 /PKGBUILD | |
download | aur-288c476ab644c9d391156f93606ea9f00f28c916.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bcf86906e3ca --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +pkgname=ntfy-git +pkgver=v2.0.1.r2.g30308ca +pkgrel=1 +pkgdesc="A utility for sending push notifications to different backends (Pushover, Pushbullet, XMPP and various desktop notification systems)" +url="https://github.com/dschep/ntfy" +depends=('python' 'python-yaml' 'python-requests' 'python-appdirs' 'python-ruamel.yaml' 'python-setuptools') +makedepends=('python' 'git') +license=('GPLv3') +arch=('any') + +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("${pkgname}::git+${url}.git"); +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir/$pkgname" + python setup.py build +} + +package() { + cd "$srcdir/$pkgname" + python setup.py install --root="$pkgdir" --optimize=1 +} |