# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=dpns
pkgver=0.4
pkgrel=3
pkgdesc="docker pull & save"
url="https://github.com/liske/dpns"
arch="noarch !ppc64le" # blocked by docker
license="GPL-2.0-or-later"
depends="bash docker-cli docker-cli-compose"
subpackages="$pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/liske/dpns/archive/$pkgver.tar.gz
	0001-Use-docker-cli-compose.patch
	dpns.initd
	"
options="!check"  # only three small shell scripts w/o testing capability

package() {
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/dpns.initd "$pkgdir"/etc/init.d/dpns
}

sha512sums="
a86b228f33a699cb47fb2bdc3090272add394f2288bf7b6ac4ef3be99d49517bcafc8d1124d0743e0108419de0206161af69a02e5eeb518da0f34d221e2be2c7  dpns-0.4.tar.gz
cd84e6aba0b0b1a7385cee495844f649f1328d8dd8677e712d1b162622eb52e7230fc5ee8bd04d88a117dde8c27a568cea936241c9f21fe34d59fbfda219d618  0001-Use-docker-cli-compose.patch
baa68b6ffd6d452a72230904636cb0a230d30313379196b925e8acaab089ffb50598ba1cd8d416699b4f93caedfd5f2bba17c6aa2a2b6cf2b1c983b784d7b1c3  dpns.initd
"
