# Contributor: Olgierd "moondeck" Nowakowski <olgierd@novakovsky.eu>
# Maintainer: Olgierd "moondeck" Nowakowski <olgierd@novakovsky.eu>

pkgname="postmarketos-artwork-wallpapers"
pkgver=1
pkgrel=5
pkgdesc="Wallpapers for postmarketOS"
url="https://postmarketos.org/"
arch="noarch"
license="CC-BY-SA"
_hash="2b39e6081c7a676ae1be3fc036ccbfef3052072c"
source="postmarketos-artwork-$_hash.tar.gz::https://gitlab.com/postmarketOS/artwork/-/archive/${_hash}/artwork-${_hash}.tar.gz"
subpackages="$pkgname-extra"
options="!check"

package() {
	mkdir -p "$pkgdir"/usr/share/wallpapers/
	cp -r "$srcdir"/artwork-$_hash/wallpapers/logo/pmos-grass-square.jpg \
		"$pkgdir"/usr/share/wallpapers/postmarketos.jpg
}

extra() {
	mkdir -p "$subpkgdir"/usr/share/wallpapers/
	cp "$srcdir"/artwork-$_hash/wallpapers/extra/* \
		"$subpkgdir"/usr/share/wallpapers/
}

sha512sums="8050868afd6d95b7b0af9e321fffa0750806f7c3d4b8b9ead4e0a822d226e97699caf29cc9185def1521cc4d7ad595867ee16bea9c8986997eeb9605ac76a4be  postmarketos-artwork-2b39e6081c7a676ae1be3fc036ccbfef3052072c.tar.gz"
