summaryrefslogtreecommitdiffstats
path: root/misc/hicolor-icon-theme/files/pkg-install.in
blob: 026349b24d62bc63b2883b61c24afa048d318c11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# $FreeBSD$
#    $MCom$

PATH=/bin:/usr/bin:/usr/sbin

case $2 in
POST-INSTALL)
    ICON_SIZES="%%ICON_SIZES%%"
    ICON_CONTEXTS="%%ICON_CONTEXTS%%"
    STOCK_SUBS="%%STOCK_SUBS%%"

    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