diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -1,7 +1,7 @@ # Maintainer: Hao Long <aur@esd.cc> pkgname=terminal-to-html -pkgver=3.3.0 +pkgver=3.4.0 pkgrel=1 pkgdesc="Converts arbitrary shell output (with ANSI) into beautifully rendered HTML" arch=("x86_64" "i686") @@ -10,18 +10,24 @@ license=('MIT') provides=('terminal-to-html') conflicts=('terminal-to-html') depends=('glibc') -makedepends=('go-pie') +makedepends=('go' 'go-bindata') source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz" "LICENSE") -sha256sums=('b0a250e85e5c5f7b22e7eaea482db372de11d5398bcfee3defec490d47f01e22' +sha256sums=('bd6584245c1224d139e9a5b57e9326bbd68b0961dad85374cdbe5ad36fd70356' 'ad8a919cd390f9475ed22addad10d283539f5b9afec268b03427c667e60b9ae5') build() { - cd ${pkgname}-${pkgver}/cmd/${pkgname} - go build -trimpath -ldflags "-extldflags ${LDFLAGS}" . + cd ${pkgname}-${pkgver} + go-bindata -o ./cmd/bindata.go assets/ + 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() { install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - install -Dm755 "$pkgname-$pkgver/cmd/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm755 "$pkgname-$pkgver/$pkgname" "$pkgdir/usr/bin/$pkgname" } |