-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b222130
commit b1f3760
Showing
2 changed files
with
44 additions
and
0 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,32 @@ | ||
# Maintainer: Atte Lautanala <[email protected]> | ||
# Contributor: Trevor Mosey <trevor dot mosey at gmail dot com> | ||
|
||
pkgname=flyctl | ||
pkgver=0.3.14 | ||
pkgrel=1 | ||
pkgdesc="Command line tools for fly.io services" | ||
arch=('x86_64' 'aarch64' 'riscv64') | ||
url="https://github.com/superfly/${pkgname}" | ||
license=("Apache-2.0") | ||
makedepends=('go') | ||
source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") | ||
sha256sums=('3fe214e1b641c5846d728da4af2e68da1bb8b823eaffa7d6456b5146658f6a2e') | ||
|
||
build() { | ||
cd "${pkgname}-${pkgver}/" | ||
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 -o bin/flyctl | ||
} | ||
|
||
check() { | ||
make -C "${pkgname}-${pkgver}" test | ||
} | ||
|
||
package() { | ||
install -Dm755 "${pkgname}-${pkgver}/bin/flyctl" -t "${pkgdir}/usr/bin/" | ||
ln -s "/usr/bin/${pkgname}" "${pkgdir}/usr/bin/fly" | ||
} |
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,12 @@ | ||
maintainers: | ||
- github: Integral-Tech | ||
email: [email protected] | ||
|
||
pre_build_script: update_pkgver_and_pkgrel(_G.newver) | ||
post_build_script: git_pkgbuild_commit() | ||
|
||
update_on: | ||
- source: github | ||
github: superfly/flyctl | ||
use_latest_release: true | ||
prefix: v |