summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: df7d34c2c534653d500a5f2049916ee2246b8e50 (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
#Maintainer: Adrian Freund <adrian@freund.io>

pkgbase=plymouth-themes-adi1090x-pack2
_themenames=('cyanide'
'cybernetic'
'dark_planet'
'darth_vader'
'deus_ex'
'dna'
'double'
'dragon'
'flame'
'glitch'
'glow'
'green_blocks'
'green_loader'
'hexagon'
'hexagon_2'
'hexagon_alt'
'hexagon_dots'
'hexagon_dots_alt'
'hexagon_hud'
'hexagon_red')

pkgname=() #initialized by loop at the bottom
pkgver=1
pkgrel=2
pkgdesc="The plymouth theme collection by adi1090x"
arch=('any')
url="https://github.com/adi1090x/plymouth-themes"
license=('GPL')
depends=('plymouth')

source=("git+https://github.com/adi1090x/plymouth-themes.git")
md5sums=('SKIP')

for themename in ${_themenames[*]}
do
    pkgname+=("plymouth-theme-${themename//_/-}")
    eval "
package_plymouth-theme-${themename//_/-}() {
    cd \$srcdir/plymouth-themes/pack_2/$themename
    mkdir -p \$pkgdir/usr/share/plymouth/themes/$themename
    find . -type f -exec install -Dm644 \"{}\" \"\${pkgdir}\"/usr/share/plymouth/themes/$themename\"{}\" \\;
}
"
done