Skip to content

Commit

Permalink
alarmcn/flyctl: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Integral-Tech committed Oct 3, 2024
1 parent b222130 commit b1f3760
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
32 changes: 32 additions & 0 deletions alarmcn/flyctl/PKGBUILD
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"
}
12 changes: 12 additions & 0 deletions alarmcn/flyctl/lilac.yaml
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

0 comments on commit b1f3760

Please sign in to comment.