summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d7de27c110ab86f35444c5c00c98b67a2f35411 (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
31
32
33
34
35
36
37
38
39
# Maintainer: Otreblan <otreblain@gmail.com>

pkgname=termcolor
pkgver=2.1.0
pkgrel=1
epoch=
pkgdesc="A header-only C++ library for printing colored messages to the terminal"
arch=('x86_64')
url="https://github.com/ikalnytskyi/termcolor"
license=('BSD')
groups=()
depends=()
makedepends=('cmake')
checkdepends=()
optdepends=()
provides=()
conflicts=()
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('435994c32557674469404cb1527c283fdcf45746f7df75fd2996bb200d6a759f')

prepare() {
	mkdir -p "$pkgname-$pkgver/build"
}

build() {
	cd "$pkgname-$pkgver/build"

	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		..
	cmake --build .
}

package() {
	cd "$pkgname-$pkgver"

	DESTDIR="$pkgdir/" cmake --install build
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}