summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6f6169a52dd54219aa2e53808decab340273f50d (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
# Maintainer: A Farzat <a@farzat.xyz>

pkgname=tg-archive
pkgver=0.5.3
pkgrel=1
pkgdesc='is a tool for exporting Telegram group chats into static websites, preserving the chat history like mailing list archives.'
arch=(any)
url=https://github.com/knadh/tg-archive
license=('MIT')
depends=(python python-cryptg python-feedgen python-jinja python-pillow python-yaml python-telethon)
makedepends=(python-setuptools)
conflicts=(${provides%=*})  # No quotes, to avoid an empty entry.
source=(
        "https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz"
        'LICENSE'
)
md5sums=(
        '25532eb845e0ae284dd28bf50be9e7a5'
        '55ddbd8fbf51b6f84a56155a16cd0a66'
)

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

package() {
    cd "$srcdir/$pkgname-$pkgver"
    python setup.py install --optimize=1 --root="$pkgdir" --skip-build
    install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}