diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | .nvchecker.toml | 5 | ||||
-rw-r--r-- | PKGBUILD | 36 |
4 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c372c0f98904 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = httprobe + pkgdesc = Take a list of domains and probe for working HTTP and HTTPS servers + pkgver = 0.2 + pkgrel = 1 + url = https://github.com/tomnomnom/httprobe + arch = x86_64 + license = MIT + makedepends = go + depends = glibc + source = httprobe-0.2.tar.gz::https://github.com/tomnomnom/httprobe/archive/v0.2.tar.gz + sha256sums = 33a460c675487e1bf75d0761d850a98a8777715731b4de930d056abbeb4e4d2f + +pkgname = httprobe diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0df2b70016b9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!.gitignore +!.nvchecker.toml +!.SRCINFO +!PKGBUILD diff --git a/.nvchecker.toml b/.nvchecker.toml new file mode 100644 index 000000000000..9395ae446b76 --- /dev/null +++ b/.nvchecker.toml @@ -0,0 +1,5 @@ +[httprobe] +source = "github" +github = "tomnomnom/httprobe" +prefix = "v" +use_latest_release = true diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..86b8debe094e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com> + +pkgname=httprobe +pkgver=0.2 +pkgrel=1 +pkgdesc="Take a list of domains and probe for working HTTP and HTTPS servers" +arch=(x86_64) +url="https://github.com/tomnomnom/httprobe" +license=(MIT) +depends=(glibc) +makedepends=(go) +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('33a460c675487e1bf75d0761d850a98a8777715731b4de930d056abbeb4e4d2f') + +_archive="$pkgname-$pkgver" + +build() { + cd "$_archive" + + 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 -v -buildvcs=false +} + +package() { + cd "$_archive" + + install -Dm755 -t "$pkgdir/usr/bin" httprobe + + install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +} |