blob: 6c676cc118a162c638856a5aa089a08a4c995e61 (
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
|
# Maintainer: Richard Neumann aka. Schard <mail at richard dash neumann period de>
pkgname=color-code
_repo_name="ansi-${pkgname}c"
pkgver=0.7.2
pkgrel=1
pkgdesc="Encode arbitrary bytes to ANSI colors on the console."
arch=('x86_64')
url="https://github.com/coNQP/${_repo_name}"
license=('MIT')
makedepends=("cargo")
source=("${_repo_name}-${pkgver}::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('86944ea890f17752d89121161d283eb417128c26b9278ebaeece74c49284847f')
build() {
cd "${_repo_name}-${pkgver}"
cargo build --release
}
package() {
cd "${_repo_name}-${pkgver}"
mkdir -p "${pkgdir}/usr/bin"
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
install "target/release/${_repo_name}" "${pkgdir}/usr/bin"
install LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"
}
|