summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96247276b34d113914e2f2887479a18b9fcd6cb8 (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
# Maintainer: Rhinoceros <https://aur.archlinux.org/account/rhinoceros>
# Contributor: Matthew Hague <matthewhague@zoho.com>

pkgname=python-imapnotify
pkgver=0.0.3
pkgrel=5
pkgdesc='Execute scripts on new messages using IDLE imap command (Python version)'
arch=('any')
url='https://github.com/a-sk/python-imapnotify'
license=('custom')
depends=('python>=3.5' 'python-pytest-runner>=2.0' 'python-pytest-runner<3' 'python-aioimaplib>=0.5.14' 'python-aioimaplib<1.0.0' 'python-boltons<17.0.0' 'python-boltons>=16.5.0')
makedepends=('python-setuptools')
install=$pkgname.install
source=("https://github.com/a-sk/${pkgname}/archive/${pkgver}.tar.gz"
        'pyimapnotify@.service')
md5sums=('575aa9656a9fa89b48eb59f309f8797f'
         'b5aca160ed17844f469bd051ee22cd57')

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

  # Install systemd.service
  install -Dm644 "${srcdir}/pyimapnotify@.service" "${pkgdir}/usr/lib/systemd/user/pyimapnotify@.service"

  # Install licence
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
}