blob: 1a24c5e85b37ef0feabdeca50fd34519626f2c84 (
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
|
# Maintainer: Hao Long <aur@esd.cc>
pkgname=terminal-to-html
pkgver=3.15.0
pkgrel=1
pkgdesc="Converts arbitrary shell output (with ANSI) into beautifully rendered HTML"
arch=("x86_64" "i686")
url="https://github.com/buildkite/terminal-to-html"
license=('MIT')
provides=('terminal-to-html')
conflicts=('terminal-to-html')
depends=('glibc')
makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
b2sums=('a866772cfc90dd3599359dd07f31dc2cc919c299eee851c68c8fcb78a6d9ffdcd9a34e15e1b711c3c4cbc565cbbd4cbe8141e426d635d2e78eeaf4fb68540fc6')
build() {
cd ${pkgname}-${pkgver}
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
go build ./cmd/${pkgname}
}
package() {
cd ${pkgname}-${pkgver}
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
}
|