sr.ht-pkgbuilds/python-srht/PKGBUILD -rw-r--r-- 1.0 KiB View raw
                                                                                
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
pkgbase=core.sr.ht
pkgname=python-srht
pkgver=0.54.6
pkgrel=1
pkgdesc="sr.ht shared code"
arch=("any")
license=("BSD")
url="https://git.sr.ht/~sircmpwn/core.sr.ht"
depends=(
	"nodejs"
	"python-alembic"
	"python-beautifulsoup4"
	"python-bleach"
	"python-celery"
	"python-cryptography"
    "python-flask"
	"python-humanize"
	"python-misaka"
	"python-pygments"
	"python-requests"
	"python-sqlalchemy"
	"python-sqlalchemy-utils"
)
makedepends=("python-setuptools" "npm")
source=(
    "$pkgbase-$pkgver.tar.gz::http://git.sr.ht/~sircmpwn/$pkgbase/archive/$pkgver.tar.gz"
    "git://github.com/twbs/bootstrap#tag=v4.1.1"
)
sha256sums=('8a49eff5a4b82d921fbf98aa28419f509c6ec7755b805d6ced88857a2d054f75'
            'SKIP')
export PKGVER=$pkgver

prepare() {
    cd $pkgbase-$pkgver
    cp -R "$srcdir"/bootstrap srht/scss/
}

build() {
    cd $pkgbase-$pkgver
    python3 setup.py build
}

package() {
    cd $pkgbase-$pkgver
    python3 setup.py install --root="${pkgdir}" --optimize=1
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}