mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 02:27:10 +02:00
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=alpine-lift
|
|
pkgver=0.2.0
|
|
pkgrel=21
|
|
pkgdesc="Basic cloud-init-like for Alpine Linux"
|
|
url="https://github.com/bjwschaap/alpine-lift"
|
|
license="MIT"
|
|
arch="all"
|
|
makedepends="go"
|
|
options="!check" #no golint avail
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/bjwschaap/alpine-lift/archive/refs/tags/v$pkgver.tar.gz
|
|
makefile.patch
|
|
"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
export CGO_CPPFLAGS="$CPPFLAGS"
|
|
export CGO_CFLAGS="$CFLAGS"
|
|
export CGO_CXXFLAGS="$CXXFLAGS"
|
|
export CGO_LDFLAGS="$LDFLAGS"
|
|
export GOFLAGS="$GOFLAGS -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
|
|
make localbuild
|
|
}
|
|
|
|
package() {
|
|
install -m755 -D bin/lift \
|
|
"$pkgdir"/usr/bin/lift
|
|
}
|
|
sha512sums="
|
|
d7e457b4f1147390e1d0932786a23c1339d9099eebfc3ac43ebda5866614b2a29a06345b2ffc822da32c3598efd9adb757d472dbf7fd24c6da8179b63b5dcd6f alpine-lift-0.2.0.tar.gz
|
|
6285b8a839b5c6ad0f4e7208903060cbbf289a5cc1661d5618f8e9d0d2a7ed0c35d5160992246eef303de66e90416f6f44787ceb918bbcf398248831e5e778ae makefile.patch
|
|
"
|