freebsd-ports/misc/hicolor-icon-theme/pkg-install

23 lines
610 B
Bash

#!/bin/sh
PATH=/bin:/usr/bin:/usr/sbin
case $2 in
POST-INSTALL)
ICON_SIZES="16x16 22x22 32x32 36x36 48x48 64x64 72x72 96x96 128x128 192x192 scalable"
ICON_CONTEXTS="actions apps devices filesystems mimetypes stock"
STOCK_SUBS="chart code data form image io media navigation net object table text"
for dir in ${ICON_SIZES}; do
for ctxt in ${ICON_CONTEXTS}; do
mkdir -p ${PKG_PREFIX}/share/icons/hicolor/${dir}/${ctxt}
if [ "${ctxt}" = "stock" ]; then
for sub in ${STOCK_SUBS}; do
mkdir -p ${PKG_PREFIX}/share/icons/hicolor/${dir}/${ctxt}/${sub}
done
fi
done
done
;;
esac