diff --git a/packages/python-colorscript/PKGBUILD b/packages/python-colorscript/PKGBUILD new file mode 100644 index 00000000000..6b6edbe7bca --- /dev/null +++ b/packages/python-colorscript/PKGBUILD @@ -0,0 +1,34 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-colorscript +_pkgname=colorscript +pkgver=21.3b86bd4 +pkgrel=1 +pkgdesc='A scripting language for designing custom ASCII banners.' +arch=('any') +url='https://pypi.org/project/colorscript/#files' +license=('MIT') +depends=('python') +makedepends=('git' 'python-setuptools') +source=("$pkgname::git+https://github.com/EntySec/ColorScript.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) +} + +build() { + cd $pkgname + + python setup.py build +} + +package() { + cd $pkgname + + python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build +} +