Commit 5117700c authored by Luca Giambonini's avatar Luca Giambonini

remove filesystem-extra

not used anymore, our [gtk] behaves like a normal repository and the packages are installed in /

[skip-ci]
parent 4d34febf
Pipeline #83 skipped
# Maintainer: Manuel Tortosa <manutortos@chakra-project.org>
pkgname=filesystem-extra
pkgver=2013.05
pkgrel=6
url="http://chakra-project.org"
license="GPLv2"
arch=('any')
pkgdesc="Extra filesystem"
makedepends=('python2' 'python3')
groups=('extra')
install=extra.install
source=('extra.conf' 'extra.profile' 'extra.tcsh' 'get_site_directory.py')
md5sums=('b0f054b6c5f809927817b345351ed7b6'
'a2834ec1cb203cbb67a5a82460aa4b0a'
'5b3f072290c29ebd4989303f8a44e998'
'265cffea08e37a0651b2296dedd159d3')
package() {
cd ${pkgdir}
install -d -m755 extra
install -d -m755 extra/etc
install -d -m755 extra/opt
# Setup /extra/usr hierarchy
for d in bin sbin lib share/misc include src; do
install -d -m755 extra/usr/${d}
done
for d in $(seq 8); do
install -d -m755 extra/usr/share/man/man${d}
done
# Add a profile for extra
install -D -m755 "$srcdir/extra.profile" "$pkgdir/etc/profile.d/extra.sh"
install -D -m755 "$srcdir/extra.tcsh" "$pkgdir/etc/profile.d/extra.csh"
# Add /extra/usr/lib to the default library search path
install -Dm644 "$srcdir/extra.conf" "$pkgdir/etc/ld.so.conf.d/extra.conf"
# Add /extra/usr/lib/python-${version}/site-packages to python site-packages directory
PYTHON2_SITE_DIRECTORY=`python2 "$srcdir/get_site_directory.py"`
PYTHON3_SITE_DIRECTORY=`python3 "$srcdir/get_site_directory.py"`
cat > "$srcdir/extra-python2.pth" <<EOF
/extra$PYTHON2_SITE_DIRECTORY
/extra$PYTHON2_SITE_DIRECTORY/gtk-2.0
EOF
cat > "$srcdir/extra-python3.pth" <<EOF
/extra$PYTHON3_SITE_DIRECTORY
/extra$PYTHON3_SITE_DIRECTORY/gtk-2.0
EOF
install -Dm644 "$srcdir/extra-python2.pth" "$pkgdir/$PYTHON2_SITE_DIRECTORY/extra.pth"
install -Dm644 "$srcdir/extra-python3.pth" "$pkgdir/$PYTHON3_SITE_DIRECTORY/extra.pth"
}
post_install() {
sbin/ldconfig -r .
}
post_upgrade() {
post_install $1
}
pre_remove() {
sbin/ldconfig -r .
}
export EXTRADIR=/extra
export PATH=$PATH:$EXTRADIR/usr/bin
export MANPATH=$MANPATH:$EXTRADIR/usr/man
if [ ! -z $PKG_CONFIG_PATH ]; then
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$EXTRADIR/usr/lib/pkgconfig
else
export PKG_CONFIG_PATH=$EXTRADIR/usr/lib/pkgconfig
fi
if [ ! -z $XDG_DATA_DIRS ]; then
export XDG_DATA_DIRS=$XDG_DATA_DIRS:$EXTRADIR/usr/share
else
export XDG_DATA_DIRS=$EXTRADIR/usr/share
fi
if [ ! -z $XDG_CONFIG_DIRS ]; then
export XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:$EXTRADIR/etc/xdg
else
export XDG_CONFIG_DIRS=$EXTRADIR/etc/xdg
fi
if [ ! -z $GI_TYPELIB_PATH ]; then
export GI_TYPELIB_PATH=$GI_TYPELIB_PATH:$EXTRADIR/usr/lib/girepository-1.0
else
export GI_TYPELIB_PATH=$EXTRADIR/usr/lib/girepository-1.0
fi
setenv EXTRADIR /extra
setenv EXTRADIRS /usr:$EXTRADIR/usr
setenv PATH $PATH:$EXTRADIR/usr/bin
setenv MANPATH $MANPATH:$EXTRADIR/usr/man
setenv PKG_CONFIG_PATH $PKG_CONFIG_PATH:$EXTRADIR/usr/lib/pkgconfig
if ( ! $?XDG_DATA_DIRS ) then
setenv XDG_DATA_DIRS $EXTRADIR/usr/share
else
setenv XDG_DATA_DIRS $XDG_DATA_DIRS:$EXTRADIR/usr/share
endif
if ( ! $?XDG_CONFIG_DIRS ) then
setenv XDG_CONFIG_DIRS $EXTRADIR/etc/xdg
else
setenv XDG_CONFIG_DIRS $XDG_CONFIG_DIRS:$EXTRADIR/etc/xdg
endif
if ( ! $?GI_TYPELIB_PATH ) then
setenv GI_TYPELIB_PATH $EXTRADIR/usr/lib/girepository-1.0
else
export GI_TYPELIB_PATH $GI_TYPELIB_PATH:$EXTRADIR/usr/lib/girepository-1.0
fi
#!/usr/bin/python
from distutils.sysconfig import get_python_lib
print(get_python_lib())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment