summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 54e0492d80e329109904578360dea42ce1433cca (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# Maintainer: Sapphira Armageddos <shadowkyogre.public@gmail.com>
# Maintainer: silverhikari
pkgbase=mse-extrafoils
pkgname=("${pkgbase}-clights" "${pkgbase}-fire" "${pkgbase}-fracture" "${pkgbase}-ghost" "${pkgbase}-insanity" "${pkgbase}-jss"  "${pkgbase}-oil" "${pkgbase}-old" "${pkgbase}-parallel" "${pkgbase}-polishedstone" "${pkgbase}-ribbon" "${pkgbase}-ripples" "${pkgbase}-holes" "${pkgbase}-normal" "${pkgbase}-oldfeed")
pkgver=2.1.2
pkgrel=1
pkgdesc="Various extra foils for MSE."
arch=(any)
url="http://msetemps.sourceforge.net/phpBB3/viewtopic.php?&t=144"
license=('GPL')
depends=('magicseteditor')
groups=('mse-addons' 'mse-addons-foils')
source=('https://github.com/silverhikari/magic-set-templates-aur/raw/main/2.1.2-extrafoils.tar.gz')
sha256sums=('2be5caca81465965cac576375e444a1174c1a116d5e3f5f2c8bb084b72e5b163')

_package-clights() {
	pkgdesc="${pkgdesc} This one is the Christmas Lights object gradient by Art_Freak."
	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-object-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

_package-fire() {
	pkgdesc="${pkgdesc} This one is the fire object gradient."
	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-object-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

_package-fracture() {
	pkgdesc="${pkgdesc} This one is the fracture foil gradient."
	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-foil-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

_package-ghost() {
	pkgdesc="${pkgdesc} This one is the ghost foil gradient by smr1313."
	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-foil-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

_package-insanity() {
	pkgdesc="${pkgdesc} This one is the insanity object gradient."
	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-object-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

_package-jss() {
	pkgdesc="${pkgdesc} This one is the JSS foil gradient by Art_Freak."
	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-foil-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

_package-old() {
	pkgdesc="${pkgdesc} This one is the old foil gradient."
	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-foil-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

_package-oil() {
	pkgdesc="${pkgdesc} This one is the oil foil gradient."
	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-foil-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

_package-parallel() {
	pkgdesc="${pkgdesc} This one is the parallel foil gradient."
	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-foil-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

_package-polishedstone() {
	pkgdesc="${pkgdesc} This one is the polishedstone foil gradient."
	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-foil-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

_package-ribbon() {
	pkgdesc="${pkgdesc} This one is the ribbon object gradient."
	conflicts=("${pkgbase}-ribbons")
	replaces=("${pkgbase}-ribbons")

	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-object-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

_package-ripples() {
	pkgdesc="${pkgdesc} This one is the ripples foil gradient."

	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-foil-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

_package-normal() {
	pkgdesc="${pkgdesc} This one is the normal foil gradient."

	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-foil-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

_package-holes() {
	pkgdesc="${pkgdesc} This one is the holes foil gradient."

	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-foil-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

_package-oldfeed() {
	pkgdesc="${pkgdesc} This one is the oldfeed foil gradient."

	cd "$srcdir"
	mkdir -p "$pkgdir/usr/share/magicseteditor/data"
	cp -r "magic-overlay-foil-${pkgname#${pkgbase}-}.mse-include" "$pkgdir/usr/share/magicseteditor/data"
}

for _p in ${pkgname[@]};do
  eval "package_${_p}() {
    $(declare -f "_package${_p#${pkgbase}}")
    _package${_p#${pkgbase}}
    }"
done