summaryrefslogtreecommitdiff
path: root/user/adelie-wallpapers/APKBUILD
blob: e6b4ac45f8935b7fad048bba06fa7a66cd6909ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=adelie-wallpapers
pkgver=1.1
pkgrel=0
pkgdesc="Wallpapers from the Adélie Linux team"
url="https://www.adelielinux.org/"
arch="noarch"
options="!check"  # No test suite.
license="CC-BY-SA-4.0"
depends=""
makedepends=""
subpackages="$pkgname-core"
source="https://distfiles.adelielinux.org/source/adelie-wallpapers-$pkgver.tar.xz"

package() {
	mkdir -p "$pkgdir"
	mv "$builddir"/usr "$pkgdir"/

	# For MATE/XFCE
	mkdir "$pkgdir"/usr/share/backgrounds/
	ln -s ../wallpapers/background/contents/images/1280x1024.png \
		"$pkgdir"/usr/share/backgrounds/background.png
	ln -s ../wallpapers/background/contents/images/1920x1080.png \
		"$pkgdir"/usr/share/backgrounds/background-wide.png
	ln -s ../wallpapers/lockscreen/contents/images/1280x1024.png \
		"$pkgdir"/usr/share/backgrounds/lockscreen.png
	ln -s ../wallpapers/lockscreen/contents/images/1920x1080.png \
		"$pkgdir"/usr/share/backgrounds/lockscreen-wide.png
}

core() {
	provides="$pkgname=1"
	description="Base wallpapers needed for minimal desktop environments"

	mkdir -p "$subpkgdir"/usr/share/wallpapers
	for wallpaper in background lockscreen; do
		cp -r "$pkgdir"/usr/share/wallpapers/$wallpaper \
			"$subpkgdir"/usr/share/wallpapers/
	done
}

sha512sums="9ea239bd2ab1c53274a63f159b572c682b72ddb31f02ec30d5afe43e935fa0128fc61e4497d2c76c8d70dc2cd5fc53d0c0b04aa6ab744bb954addc10dcaff981  adelie-wallpapers-1.1.tar.xz"