Skip to content

Commit 5a8c8a6

Browse files
committed
alarmcn/flyctl: follow Go package guidelines
1 parent 5b055d8 commit 5a8c8a6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

alarmcn/flyctl/PKGBUILD

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ checkdepends=('ruby-rake')
1313
source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
1414
sha256sums=('27f3f1abef5d655462859d15e84640506a422833f4ce4bffa23e2f5d75d2af57')
1515

16+
prepare() {
17+
cd "${pkgname}-${pkgver}/"
18+
export GOPATH="${srcdir}"
19+
go mod download -modcacherw
20+
}
21+
1622
build() {
1723
cd "${pkgname}-${pkgver}/"
1824
export CGO_CPPFLAGS="${CPPFLAGS}"
@@ -24,7 +30,8 @@ build() {
2430
}
2531

2632
check() {
27-
make -C "${pkgname}-${pkgver}" test
33+
cd "${pkgname}-${pkgver}/"
34+
go test ./...
2835
}
2936

3037
package() {

0 commit comments

Comments
 (0)