blob: 5c93bc89de3e6e3f28e82b709db841fbf76318ac (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Michael Kuc <michaelkuc6 at gmail dot com>
# Contributor: Ihor Kalnytskyi <ikalnytskyi at github dot com>
_pkgname=termcolor
pkgname="${_pkgname}-git"
pkgver=v1.0.1.r22.ga79bf3c
pkgrel=1
epoch=
pkgdesc='Termcolor is a header-only C++ library for printing colored messages to the terminal. Written just for fun with a help of the Force.'
arch=('x86_64')
url='https://github.com/ikalnytskyi/termcolor'
license=('BSD')
groups=()
depends=()
makedepends=('git' 'cmake')
checkdepends=()
optdepends=()
provides=("${_pkgname}")
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("${_pkgname}::git+https://github.com/ikalnytskyi/termcolor.git")
noextract=()
validpgpkeys=()
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${_pkgname}"
mkdir -p build
cd build
cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX=/usr ".."
}
build() {
cd "${_pkgname}/build"
cmake --build .
}
# check() {
# cd "${pkgname}/build"
# ./test_termcolor
# }
package() {
cd "${_pkgname}"
(cd build && make PREFIX=/usr DESTDIR="${pkgdir}/" install)
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
install -Dm644 README.rst "${pkgdir}/usr/share/doc/${_pkgname}/README.rst"
}
|