summaryrefslogtreecommitdiffstats
path: root/misc/hicolor-icon-theme/files/pkg-install.in
blob: a450e1803206829e6abc1f92771f925aa6a9f961 (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: ports/misc/hicolor-icon-theme/files/pkg-install.in,v 1.6 2009/09/26 12:53:31 marcus Exp $

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