56 lines
1.7 KiB
Bash
56 lines
1.7 KiB
Bash
# Template file for 'awoken-icons'
|
|
pkgname=awoken-icons
|
|
version=2.5.2
|
|
revision=4
|
|
archs=noarch
|
|
wrksrc=AwOken-2.5
|
|
hostmakedepends="unzip"
|
|
short_desc="Simple and quite complete icon set, Token-style"
|
|
maintainer="Steven R <dev@styez.com>"
|
|
license="CCPL:by-sa"
|
|
homepage="http://alecive.deviantart.com/art/AwOken-163570862"
|
|
distfiles="https://dl.dropbox.com/s/p3hfu7jw3vv7os9/AwOken-2.5.zip"
|
|
checksum=d122ee0457079aaa30a664ae582fbc6208414e8728f497dce399ed9f33f9b36e
|
|
|
|
build_options="customico"
|
|
desc_option_customico="Enable support for Custom Icons Themes"
|
|
|
|
if [ "$build_option_customico" ]; then
|
|
depends="zenity xdg-utils ImageMagick"
|
|
fi
|
|
|
|
do_install() {
|
|
vmkdir "usr/share/icons"
|
|
for _theme in AwOken{,Dark,White}.tar.gz; do
|
|
tar --no-same-owner -xzf "$_theme" -C "${DESTDIR}/usr/share/icons/"
|
|
done
|
|
find "${DESTDIR}" -type d -exec chmod 755 '{}' \;
|
|
find "${DESTDIR}" -type f -exec chmod 644 '{}' \;
|
|
if [ "$build_option_customico" ]; then
|
|
vmkdir "usr/bin"
|
|
find "${DESTDIR}" -name awoken-icon-theme-customization\* -exec chmod 755 '{}' \;
|
|
ln -sf /usr/share/icons/AwOken/awoken-icon-theme-customization "${DESTDIR}/usr/bin/"
|
|
ln -sf /usr/share/icons/AwOken/awoken-icon-theme-customization-clear "${DESTDIR}/usr/bin/"
|
|
ln -sf /usr/share/icons/AwOkenDark/awoken-icon-theme-customization-dark "${DESTDIR}/usr/bin/"
|
|
ln -sf /usr/share/icons/AwOkenWhite/awoken-icon-theme-customization-white "${DESTDIR}/usr/bin/"
|
|
fi
|
|
}
|
|
|
|
awoken-icons-dark_package() {
|
|
depends="awoken-icons>=${version}"
|
|
short_desc+=" - Dark icons"
|
|
archs=noarch
|
|
pkg_install() {
|
|
vmove usr/share/icons/AwOkenDark
|
|
}
|
|
}
|
|
|
|
awoken-icons-white_package() {
|
|
depends="awoken-icons>=${version}"
|
|
short_desc+=" - White icons"
|
|
archs=noarch
|
|
pkg_install() {
|
|
vmove usr/share/icons/AwOkenWhite
|
|
}
|
|
}
|