blob: 1da7a527616ce2c542eabaeff27db76fd5a846e9 (
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
|
# Contributor: twa022 <twa022@gmail.com>
pkgname=dockbarx-dock-theme
epoch=1
pkgver=20100516
pkgrel=1
pkgdesc="DockBarX Theme"
arch=('any')
url="https://www.deviantart.com/bigrza/art/Dock-theme-for-DockbarX-164283521"
license=('CCPL:cc-by-nc-3.0')
depends=('dockbarx')
makedepends=('imagemagick')
groups=('dockbarx-themes')
source=('https://orig00.deviantart.net/fcfe/f/2010/136/c/5/dock_theme_for_dockbarx_by_bigrza.zip')
sha256sums=('ec6da776ca93fa5e470ee09788e988032a2c9131d770e861a4d5353d30837d89')
package () {
install -D -m644 "${srcdir}"/Dock.tar.gz "${pkgdir}"/usr/share/dockbarx/themes/Dock.tar.gz
install -D -m644 "${srcdir}"/DockV.tar.gz "${pkgdir}"/usr/share/dockbarx/themes/Dock-Vertical.tar.gz
cd "${srcdir}"
mkdir -p "${srcdir}"/Dock-Tight
tar -zxf "${srcdir}"/Dock.tar.gz -C "${srcdir}"/Dock-Tight
sed -i 's:aspect_ratio="3/2":aspect_ratio="1/1":' "${srcdir}"/Dock-Tight/config
sed -i 's:<theme name = "Dock">:<theme name = "Dock-Tight">:' "${srcdir}"/Dock-Tight/config
for _png in $( find "${srcdir}"/Dock-Tight/pixmaps -name *png ) ; do
if [[ "$( basename "${_png}" )" == 'launcherbutton.png' ]] ; then
convert -shave 11x0 "${_png}" "${_png}"
else
convert -shave 10x0 "${_png}" "${_png}"
fi
done
cd "${srcdir}"/Dock-Tight/
tar -czf Dock-Tight.tar.gz *
install -D -m644 "${srcdir}"/Dock-Tight/Dock-Tight.tar.gz "${pkgdir}"/usr/share/dockbarx/themes/Dock-Tight.tar.gz
mkdir -p "${srcdir}"/DockV-Tight
tar -zxf "${srcdir}"/DockV.tar.gz -C "${srcdir}"/DockV-Tight
sed -i 's:aspect_ratio="4/3":aspect_ratio="1/1":' "${srcdir}"/DockV-Tight/config
sed -i 's:<theme name = "DockV">:<theme name = "DockV-Tight">:' "${srcdir}"/DockV-Tight/config
for _png in $( find "${srcdir}"/DockV-Tight/pixmaps -name *png ) ; do
if [[ "$( basename "${_png}" )" == 'launcherbutton.png' ]] ; then
convert -shave 0x11 "${_png}" "${_png}"
else
convert -shave 0x10 "${_png}" "${_png}"
fi
done
cd "${srcdir}"/DockV-Tight/
tar -czf DockV-Tight.tar.gz *
install -D -m644 "${srcdir}"/DockV-Tight/DockV-Tight.tar.gz "${pkgdir}"/usr/share/dockbarx/themes/DockV-Tight.tar.gz
}
|