-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: AUR installation/pkgbuild, cleanup (#27)
* docs: AUR installation, cleanup Signed-off-by: Kainoa Kanter <[email protected]> * fix(docs): heading level for homebrew Signed-off-by: Kainoa Kanter <[email protected]> * add PKGBUILD * Add maintainer comment for Di Mei --------- Signed-off-by: Kainoa Kanter <[email protected]>
- Loading branch information
1 parent
8dc4b89
commit 0331f30
Showing
2 changed files
with
74 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Maintainer: Di Mei <[email protected]> | ||
# Maintainer: Kainoa Kanter <[email protected]> | ||
|
||
_pkgname=cdpcurl | ||
pkgname="$_pkgname-git" | ||
pkgver=r12.g8dc4b89 | ||
pkgrel=2 | ||
pkgdesc='CLI for the Coinbase Developer Platform (CDP)' | ||
url='https://github.com/coinbase/cdpcurl' | ||
arch=('aarch64' 'i686' 'x86_64') | ||
license=('custom:none') | ||
depends=('glibc') | ||
makedepends=('git' 'go') | ||
provides=("$_pkgname") | ||
source=("$_pkgname::git+$url") | ||
sha256sums=('SKIP') | ||
|
||
pkgver() { | ||
cd "${srcdir}/${_pkgname}" || exit | ||
printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | ||
} | ||
|
||
prepare() { | ||
cd "$_pkgname" | ||
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 -ldflags=-linkmode=external -mod=readonly -modcacherw" | ||
cd "$_pkgname" | ||
go build | ||
} | ||
|
||
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" | ||
go test ./... | ||
} | ||
|
||
package() { | ||
cd "$_pkgname" | ||
install -Dv cdpcurl -t "$pkgdir/usr/bin/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters