summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 003a002b8160539128f09184eb405a2d45ccad17 (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
# Maintainer: Charles Milette <charles.milette@gmail.com>

_gitname=Pokemon-Terminal
pkgname=pokemon-terminal-git
pkgver=r301.8085a41
pkgrel=1
pkgdesc="Pokemon terminal themes"
arch=('any')
url="https://github.com/LazoCoder/$_gitname"
license=('GPL3')
depends=('python>=3.5')
optdepends=('gnome-shell: support changing GNOME wallpaper'
            'terminology: support changing Terminology background'
            'tilix: support changing Tilix background')
makedepends=('git' 'jq' 'curl')
source=("https://github.com/LazoCoder/$_gitname/archive/master.zip" "get-commit-count.sh")
sha256sums=('SKIP' '714f2e21a5b77d8b72d6f75da1f1c2fac93f15e2ddd3829a3fbd6dc7307779d0')

pkgver() {
  cd "$srcdir"
  printf "r%s.%s" "$(./get-commit-count.sh)" "$(git ls-remote https://github.com/LazoCoder/$_gitname.git refs/heads/master | cut -c1-7)"
}

package() {
  cd "$srcdir/$_gitname-master/pokemonterminal"

  rm load_all_pokemon.py

  cd ..

  python setup.py install --root="$pkgdir/" --optimize=1
}