summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5974fc0022b5f03247400c94cd51c32a4526d215 (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
# Maintainer: Miroslav Koškár <https://mkoskar.com/>

_basename='tcolors'

pkgname='tcolors-git'
pkgver=r11.fed0e89
pkgrel=1
pkgdesc='Get & Set terminal ANSI colors'
url='https://github.com/mkoskar/tcolors'
license=(Apache)
arch=(any)
depends=(python)
makedepends=(git)

source=("git+https://github.com/mkoskar/$_basename.git")
sha256sums=(SKIP)

pkgver() {
    cd "$_basename"
    printf 'r%s.%s' "$(git rev-list --count HEAD)" \
                    "$(git rev-parse --short HEAD)"
}

package() {
    cd "$_basename"
    install -d "$pkgdir/usr"
    cp -r --preserve=mode bin "$pkgdir/usr"
}