diff options
author | Michael Kuc | 2018-05-25 18:24:49 +0100 |
---|---|---|
committer | Michael Kuc | 2018-05-25 18:24:49 +0100 |
commit | 089e37c3b49e8982f2084edbb9d4301e3e051181 (patch) | |
tree | 686d8ccbe9983e16bdc39d9ad09b92ac486c1d3b | |
download | aur-089e37c3b49e8982f2084edbb9d4301e3e051181.tar.gz |
Initial commit of .SRCINFO and PKGBUILD
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f3abfab5dcfd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = termcolor-git + 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. + pkgver = 0.1 + pkgrel = 1 + url = https://github.com/ikalnytskyi/termcolor + arch = x86_64 + license = BSD + makedepends = git + makedepends = cmake + provides = termcolor + source = termcolor-git::git+https://github.com/ikalnytskyi/termcolor.git + sha256sums = SKIP + +pkgname = termcolor-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..33cc78f0e303 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Michael Kuc <michaelkuc6 at gmail dot com> +# Contributor: Ihor Kalnytskyi <ikalnytskyi at github dot com> + +pkgname=termcolor-git +pkgver=0.1 +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=('termcolor') +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("${pkgname}::git+https://github.com/ikalnytskyi/termcolor.git") +noextract=() +validpgpkeys=() +sha256sums=('SKIP') + +prepare() { + # cd "$pkgname + : +} + +build() { + cd "${pkgname}" + cmake . + make +} + +check() { + cd "${pkgname}" + ./test_termcolor +} + +package() { + cd "${pkgname}" + install -Dm644 "include/termcolor/termcolor.hpp" "${pkgdir}/usr/include/termcolor/termcolor.hpp" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |