summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 73ea9d632a5e4305d92fda9b567856358df20f6f (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
# Maintainer: waayne
pkgname=league-dashboard-git
pkgver=r1.d9e1982-1
pkgrel=2
pkgdesc="A browser dashboard for League of Legends where you can track gold differences of your current game."
arch=('x86_64')
conflicts=()
provides=("league-dashboard")
url="https://github.com/waaynee/LeagueDashboard"
license=('MIT')
depends=('git' 'python-flask' 'python-matplotlib' 'python-requests' 'python-waitress')
source=("git+https://github.com/waaynee/LeagueDashboard.git")
md5sums=('SKIP')

_gitname=LeagueDashboard
  
pkgver() {
    cd "$(_gitname)"
    ( set -o pipefail
        git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
        printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
    )
}

package()
{
    cp -r "${srcdir}/LeagueDashboard" "/opt"
}