summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8bddd139cd4701e1fe3b1e46afececb33ebff102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Maintainer: David Parrish <daveparrish@tutanota.com>

# shellcheck disable=SC2034,SC2164

pkgname=python-chromalog
pkgver=1.0.5
pkgrel=1
pkgdesc="Eases the use of colors in Python logging"
url="https://github.com/freelan-developers/chromalog"
makedepends=('python-setuptools')
arch=('any')
license=('MIT')
source=("$pkgname-$pkgver.tar.gz::https://github.com/freelan-developers/chromalog/archive/$pkgver.tar.gz")
sha256sums=('7596837685b133549da367c752eeb2ff08091708dda9f2c1acce6be7ec938bbf')

package() {
    cd "${srcdir:?}/chromalog-$pkgver"
    python setup.py install --root="${pkgdir:?}" --optimize=1 --skip-build
    install -Dm644 "${srcdir:?}/chromalog-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}