summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c10b68e55f1f0bf877d388d1894f85ca574eef5c (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
33
34
35
36
37
# Maintainer: ole <ole at orhagen.no>
pkgname=python-terminaltexteffects-git
_name=terminaltexteffects
pkgver=d9a1ecea9ceadad4921662569220d8db042b7f96
pkgrel=1
pkgdesc="TerminalTextEffects (TTE) is a terminal visual effects engine."
arch=('any')
url="https://github.com/ChrisBuilds/terminaltexteffects"
license=('MIT')
provides=("python-terminaltexteffects")
conflicts=("python-terminaltexteffects")
depends=('python')
makedepends=(
    'python-build'
    'python-installer'
    'python-setuptools'
    'python-wheel'
)
source=("git+https://github.com/ChrisBuilds/terminaltexteffects.git")
sha256sums=('SKIP')

pkgver() {
	  cd "$srcdir/${_name}"
	  printf "%s" "$(git rev-parse HEAD)"
}

build() {
  cd "${_name}"
  python -m build --wheel --no-isolation
}

package() {
  cd "${_name}"
  python -m installer --destdir="$pkgdir" dist/*.whl

  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}