# Contributor: Tomio <mail@tom1o.space>
# Maintainer: Tomio <mail@tom1o.space>
pkgname=nixpacks
pkgver=0.1.7
pkgrel=1
pkgdesc="Generate an OCI compliant image based off app source."
url="https://github.com/railwayapp/nixpacks"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # limited by alpine's integration/bootstrapping (https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/35671#note_243623)
license="MIT"
makedepends="cargo cargo-auditable"
source="https://github.com/railwayapp/nixpacks/archive/v$pkgver/$pkgname-$pkgver.tar.gz"


build() {
	cargo auditable build --release
}

check() {
	# Only generate_plan_tests, docker_run_tests needs docker
	cargo test --test generate_plan_tests
}

package() {
	install -D -m755 target/release/nixpacks -t "$pkgdir"/usr/bin/
}

sha512sums="
66f437f3a4e357886a1eba59411d543f585b3204e662afcc2ef5d701d2d221f3ec4de9c7852de712eef2f9c7c8822822d7f6534597d58aab3b99ccf8e64a7c52  nixpacks-0.1.7.tar.gz
"
