Package Details: crawley 1.7.18-1

Git Clone URL: https://aur.archlinux.org/crawley.git (read-only, click to copy)
Package Base: crawley
Description: Simple web scraper
Upstream URL: https://github.com/s0rg/crawley
Keywords: crawler go scraper url web
Licenses: MIT
Conflicts: crawley-bin, crawley-git
Provides: crawley
Submitter: lmartinez-mirror
Maintainer: Gallifreyan
Last Packager: Gallifreyan
Votes: 0
Popularity: 0.000000
First Submitted: 2021-11-11 03:24 (UTC)
Last Updated: 2026-03-31 08:47 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

jsimon0 commented on 2025-12-11 13:33 (UTC) (edited on 2025-12-11 13:34 (UTC) by jsimon0)

I think you want binutils instead of ld in your makedepends. ld is provided by binutils

# Maintainer: Gallifreyan <gallifreyan@protonmai.ch>
# Contributor: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Ícar N. S. <icar.nin@protonmail.com>

pkgname=crawley
pkgver=1.7.16
pkgrel=1
pkgdesc="Simple web scraper"
arch=('x86_64')
url="https://github.com/s0rg/${pkgname}"
license=(MIT)
depends=(glibc)
provides=(crawley)
conflicts=("crawley-bin" "crawley-git")
makedepends=(go binutils)
source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz)
sha512sums=('5c5b447463d2fccd4d918060aca50770957f45ca04b643e074382a240d79687912171ecbde9144f59fa200750b3b51af22f97cddfb708e130668d8c923859511')

prepare() {
  cd ${pkgname}-${pkgver}
  mkdir -p build
  go mod download
}

build() {
  export CGO_CPPFLAGS="${CPPFLAGS}"
  export CGO_CFLAGS="${CFLAGS}"
  export CGO_CXXFLAGS="${CXXFLAGS}"
  export CGO_LDFLAGS="${LDFLAGS}"
  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
  cd ${pkgname}-${pkgver}
  go vet ./...
  go build -o build -ldflags="-linkmode=external -X main.gitVersion=${pkgver}" ./cmd/crawley
}

check() {
  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"
  cd ${pkgname}-${pkgver}
  go test ./...
}

package() {
  cd ${pkgname}-${pkgver}
  install -Dv "build/${pkgname}" -t "${pkgdir}/usr/bin/"
  install -Dvm644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname}"
  install -Dvm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}

Dominiquini commented on 2024-09-02 04:40 (UTC)

Sorry, I flagged this package out-of-date wrongly! I was trying to flag the #-bin version of this package!