summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c224b8d15005c42c93cb689e40ee21e7b673eb4e (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Tristan Hill

pkgname=changedetection.io
pkgver=0.39.5
pkgrel=1
pkgdesc="change monitoring of web pages"
arch=('any')
url="https://github.com/dgtlmoon/changedetection.io"
license=('Apache 2.0')
makedepends=('python-setuptools')
depends=(
        'python-flask'
        'python-eventlet'
        'python-validators'
        'python-timeago'
        # inscriptis
        'python-feedgen'
        'python-flask-login'
        'python-pytz'
        'python-requests'
        'python-urllib3'
        'python-chardet'
        'python-wtforms'
        # jsonpath-ng
        # apprise
        # these for apprise
          'python-oauthlib'
          'python-requests-oauthlib'
        'python-cryptography'
        'python-beautifulsoup4'
        'python-selenium')
source=("https://github.com/dgtlmoon/changedetection.io/archive/refs/tags/$pkgver.tar.gz"
        'sysusers'
        'tmpfiles'
        'service')
sha512sums=('49ffabe51ae58cb008321c8e7edf7af3a9d6a07acdb44784840fbf2994897104bb26fac1170f756a2efb56259da8f2235b353dd2ce10ebbcb905aed2297aaef4'
            '5ef8b215bddc02b04d55d3699f27ad043461d8771591be2ebf0ed6390c58ab881426214173c8e1cc8bb36ecd7acebc5d69d760fc65b8a3b191b2116150748f53'
            '62a684e35c3b479b8ab139b2d79f83f408bede0d4e0f1e500ee75f13126456fa5b574d8cb826c8c56ff0da488dec4ed3562854d0f05d44814beaa3b726bcd318'
            '5dba78fafd77fe41b69d73849529ed4f086879cd3a6e4ada126a320d249bb730bcf6a0b49e5b987699a2420e7083c7c6d1a0b921c49c932ec33f30bda083b506')

package() {
  cd "$srcdir/$pkgname-$pkgver"
  python setup.py install --root="$pkgdir" --optimize=1
  PIP_CONFIG_FILE=/dev/null pip install --isolated --target="$pkgdir/usr/lib/changedetection.io" --ignore-installed --no-deps inscriptis jsonpath-ng apprise
  python -O -m compileall -s ${pkgdir} "${pkgdir}/usr/lib/changedetection.io"
  install -Dm644 "${srcdir}/sysusers" "${pkgdir}/usr/lib/sysusers.d/changedetection.io.conf"
  install -Dm644 "${srcdir}/tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/changedetection.io.conf"
  install -Dm644 "${srcdir}/service" "${pkgdir}/usr/lib/systemd/system/changedetection.io.service"
}