summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fe490582183e7a93893e40eebe954e9217ada653 (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 <http://mkoskar.com/>

_basename='tcolors'

pkgname='tcolors-git'
pkgver=r10.c76f999
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"
}