diff options
author | Ole P. Orhagen | 2024-05-29 13:53:23 +0200 |
---|---|---|
committer | Ole P. Orhagen | 2024-05-29 13:53:23 +0200 |
commit | cec9d1105906713f6cbdfe1625d83319d1fc2d02 (patch) | |
tree | dc7879dcdcb92056993e00f4366d76a28fee5820 /PKGBUILD | |
download | aur-python-terminaltexteffects-git.tar.gz |
Add a python-terminaltexteffects-git package
Signed-off-by: Ole P. Orhagen <ole.petter.orhagen@mimiro.no>
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c10b68e55f1f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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/" +} |