blob: adf3e9ec4462839748bd17b0ed5b53327d50dfb2 (
plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Maintainer: justforlxz <justforlxz@gmail.com>
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
pkgbase=deepin-wallpapers-git
pkgname=(deepin-wallpapers-git deepin-community-wallpapers-git)
pkgver=1.7.7.r9.ga579405
pkgrel=1
epoch=1
pkgdesc='Deepin Wallpapers'
arch=('any')
license=('GPL')
url="https://github.com/linuxdeepin/deepin-wallpapers"
makedepends=('git' 'deepin-api-git')
groups=('deepin-git')
source=("$pkgname::git+https://github.com/linuxdeepin/deepin-wallpapers/")
sha512sums=('SKIP')
pkgver() {
cd $pkgbase
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd $pkgname
if [[ ! -z ${sha} ]];then
git checkout -b $sha
fi
cp -a "$srcdir"/$pkgbase{,-community}
}
build() {
cd "$srcdir"/$pkgbase
for _pic in deepin/*; do
make PICS=$_pic
done
cd "$srcdir"/$pkgbase-community
for _pic in deepin-community/*; do
make PICS=$_pic
done
}
package_deepin-wallpapers-git() {
pkgdesc='Default wallpapers for DDE'
groups=('deepin-git')
cd $pkgbase
install -dm755 "$pkgdir"/usr/share/wallpapers
cp -r deepin "$pkgdir"/usr/share/wallpapers/
install -dm755 "$pkgdir"/var/cache
cp -r image-blur "$pkgdir"/var/cache/
# Suggested by upstream
install -dm755 "$pkgdir"/usr/share/backgrounds/deepin
ln -s ../../wallpapers/deepin/Hummingbird_by_Shu_Le.jpg "$pkgdir"/usr/share/backgrounds/deepin/desktop.jpg
ln -s $(echo -n /usr/share/wallpapers/deepin/Hummingbird_by_Shu_Le.jpg | md5sum | cut -d " " -f 1).jpg \
"$pkgdir"/var/cache/image-blur/$(echo -n /usr/share/backgrounds/deepin/desktop.jpg | md5sum | cut -d " " -f 1).jpg
}
package_deepin-community-wallpapers-git() {
pkgdesc='Community wallpapers for DDE'
groups=('deepin-git')
cd $pkgbase-community
install -dm755 "$pkgdir"/usr/share/wallpapers/deepin
cp deepin-community/* "$pkgdir"/usr/share/wallpapers/deepin/
install -dm755 "$pkgdir"/var/cache
cp -r image-blur "$pkgdir"/var/cache/
}
|