-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPKGBUILD
35 lines (32 loc) · 819 Bytes
/
PKGBUILD
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
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright (C) 2020 Sean Anderson <[email protected]>
# Maintainer: Sean Anderson <[email protected]>
pkgname=trends.tf-git
pkgver=$(make --no-print-directory version)
pkgrel=1
pkgdesc="Team Fortress 2 stats and trends"
arch=('any')
url="https://trends.tf/"
license=('AGPL3' 'MIT')
depends=(
'nginx'
'uwsgi-plugin-python'
'python-requests'
'python-psycopg2'
'python-flask'
'python-dateutil'
'python-zstandard'
)
makedepends=('git' 'python-setuptools')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
pkgver() {
cd "$startdir"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$startdir"
make DESTDIR="$pkgdir/" install
# Cache dir; user 33 is http
install -dvm700 -o33 -g33 "$pkgdir/var/cache/nginx/"
}