summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 056f2d67b11fc2e08a1e1b3d0fd98c1ac81b1f33 (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
# Maintainer: Daniel Quinn <archlinux at danielquinn dot org>

pkgname="python-aletheia"
pkgver=0.6.3
pkgrel=1
pkgdesc="Fight fake news with cryptography & human nature"
_name=${pkgname#python-}
arch=('any')
url="https://danielquinn.github.io/aletheia"
license=('AGPL3')
makedepends=('python-setuptools')
depends=('ffmpeg'
'python'
'python-setuptools'
'python-pillow'
'python-cryptography'
'python-magic'
'python-requests'
'python-termcolor'
'python-piexif')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha512sums=('4734dfd2a86725a6cac29c56600b7e40b36bc34dbd08ce2727ce9669780ec21e1fe439039396c4c56a1acb2500d134892f3ee11731e27636d367d0a8cc4e1dd3')

build() {
    cd "${srcdir}/${_name}-${pkgver}"
    python setup.py build
}

package() {
    cd "${srcdir}/${_name}-${pkgver}"
    python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
    install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
}