Package Details: httpstat-go 1.1.0-1

Git Clone URL: https://aur.archlinux.org/httpstat-go.git (read-only, click to copy)
Package Base: httpstat-go
Description: It's like curl -v, with colours.
Upstream URL: https://github.com/davecheney/httpstat
Licenses: MIT
Submitter: 4679
Maintainer: qufiwefefwoyn
Last Packager: None
Votes: 3
Popularity: 0.085128
First Submitted: 2017-04-21 03:01 (UTC)
Last Updated: 2021-12-08 14:21 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

synthead commented on 2020-07-08 20:46 (UTC) (edited on 2020-07-08 20:54 (UTC) by synthead)

Here, I made a version that compiles from sources! It uses Git to fetch the sources because the project uses submodules. I could fetch each submodule path individually, but that would be a little messy. It doesn't build off the latest master, so I don't think this flavor would need a -git version on the package name :)

# Maintainer: 4679kun <4679kun@outlook.com>
# Contributor: Maxwell Pray <synthead@gmail.com>

_pkgname=httpstat
pkgname=$_pkgname-go
pkgver=1.0.0
pkgrel=1
pkgdesc="It's like curl -v, with colours."
arch=('x86_64')
url='https://github.com/davecheney/httpstat'
license=('MIT')
makedepends=('go' 'git')
source=("git+https://github.com/davecheney/httpstat.git#tag=v$pkgver")
sha256sums=('SKIP')

prepare() {
  cd "$srcdir/$_pkgname"

  git submodule init
  git submodule update
}

build() {
  cd "$srcdir/$_pkgname"

  export CGO_LDFLAGS=$LDFLAGS
  export CGO_CFLAGS=$CFLAGS
  export CGO_CPPFLAGS=$CPPFLAGS
  export CGO_CXXFLAGS=$CXXFLAGS

  if [[ ! -L "$srcdir/$_pkgname/src/github.com/davecheney/$_pkgname" ]]; then
    mkdir -p "$srcdir/$_pkgname/src/github.com/davecheney"
    ln -s "$srcdir/$_pkgname" "$srcdir/$_pkgname/src/github.com/davecheney/$_pkgname"
  fi

  GOPATH=$PWD VERSION=$version make "httpstat-linux-amd64-v$version"
}

package() {
  install -Dm 755 "$srcdir/$_pkgname/httpstat-linux-amd64-v$version" "$pkgdir/usr/bin/$pkgname"
}