Package Details: httpstat-go 1.0.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: 4679kun
Maintainer: 4679kun
Last Packager: 4679kun
Votes: 0
Popularity: 0.000000
First Submitted: 2017-04-21 03:01
Last Updated: 2017-04-21 03:01

Dependencies (0)

Required by (0)

Sources (2)

Latest Comments

Synthead commented on 2020-07-08 20:46

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"
}