aports/testing/dockerize/APKBUILD
2025-04-11 19:40:50 +02:00

30 lines
967 B
Text

# Contributor: Christian Kampka <christian@kampka.net>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=dockerize
pkgver=0.9.0
pkgrel=4
pkgdesc="Utility to simplify running applications in docker containers."
url="https://github.com/jwilder/dockerize"
arch="all"
license="MIT"
options="!check" # No test suite
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/jwilder/dockerize/archive/v$pkgver.tar.gz"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
go build -ldflags "-X main.buildVersion=$pkgver"
}
package() {
install -Dm0755 dockerize "$pkgdir"/usr/bin/dockerize
install -dm0755 "$pkgdir"/usr/share/dockerize/
cp -r examples "$pkgdir"/usr/share/dockerize/
}
sha512sums="
664128cbd98420d31dc766c785c66a03391dfead5cbdb7a8aac71c4ffbc0ef3fccc109fd1cc786d80b0bbb6be6e700a56ab4ed61f42fd971e56ab8222233b0e5 dockerize-0.9.0.tar.gz
"