summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 047b50a62e43f769123df55a49f1cb4a92a412f4 (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
29
30
# Maintainer: blacktea <blackteahamburger@outlook.com>

pkgname='colorthis-git'
pkgver=r10.a3f47ea
pkgrel=1
pkgdesc="Make your pipe and logfile colorful"
arch=('x86_64')
url='https://github.com/Sasasu/ColorThis'
license=('MIT')
makedepends=('cmake' 'git')
provides=('colorthis')
conflicts=('colorthis')
source=('colorthis-git::git+https://github.com/Sasasu/ColorThis.git')
md5sums=('SKIP')

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

build() {
  cd "$pkgname"
  cmake -DCMAKE_INSTALL_PREFIX=/usr .
  make
}

package() {
  cd "$pkgname"
  make DESTDIR="$pkgdir/" install
}