summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3bac78eedb5b2bec65a9414f0047c502c885213a (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: Richard Neumann aka. rne <r dot neumann at homeinfo fullstop de>

_pkgbase='usernotify'
pkgname="python-${_pkgbase}-git"
pkgver=r32.cf66096
pkgrel=3
pkgdesc="Python 3 library and scripts for notifying desktop users"
arch=('any')
url="https://github.com/conqp/${_pkgbase}"
license=('GPLv3')
depends=('python' 'libnotify')
makedepends=('git' 'python')
source=("${pkgname}::git+${url}.git")
md5sums=('SKIP')
pkgdir='pkg'
srcdir='src'


pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


package() {
    cd "${srcdir}/${pkgname}"

    # Install python packages to $pkgdir
    python setup.py install --root ${pkgdir} --optimize=1
}