|
|
@ -1,7 +1,8 @@
|
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export PATH="$(dirname $0):${PATH}"
|
|
|
|
|
|
|
|
|
|
|
|
tdp='cd ~/tde/tde-packaging/redhat'
|
|
|
|
tdp='cd ~/tde/tde-packaging/redhat'
|
|
|
|
#grp='tdp; ./genrpm.sh -v 3.5.13.2 -a'
|
|
|
|
|
|
|
|
grp='./genrpm.sh -v 14.0.0 -a'
|
|
|
|
grp='./genrpm.sh -v 14.0.0 -a'
|
|
|
|
|
|
|
|
|
|
|
|
BUILDDIR="/dev/shm/BUILD${DIST}.$(uname -i)"
|
|
|
|
BUILDDIR="/dev/shm/BUILD${DIST}.$(uname -i)"
|
|
|
@ -15,8 +16,9 @@ if [ -x /usr/sbin/urpmi ]; then
|
|
|
|
REPOUPDATE='(cd $(rpm -E %{_rpmdir}); genhdlist2 --clean --allow-empty noarch; genhdlist2 --clean --allow-empty $(uname -i); sudo urpmi.update rpmbuild.$(uname -i) rpmbuild.noarch)'
|
|
|
|
REPOUPDATE='(cd $(rpm -E %{_rpmdir}); genhdlist2 --clean --allow-empty noarch; genhdlist2 --clean --allow-empty $(uname -i); sudo urpmi.update rpmbuild.$(uname -i) rpmbuild.noarch)'
|
|
|
|
elif [ -x /usr/bin/zypper ]; then
|
|
|
|
elif [ -x /usr/bin/zypper ]; then
|
|
|
|
PKGMGR="zypper"
|
|
|
|
PKGMGR="zypper"
|
|
|
|
PKGINST="zypper install -y"
|
|
|
|
PKGINST="sudo zypper install -y"
|
|
|
|
PKGDEL="zypper remove -y"
|
|
|
|
PKGDEL="sudo zypper remove -y"
|
|
|
|
|
|
|
|
REPOUPDATE='(cd $(rpm -E %{_rpmdir}); createrepo $(uname -i); createrepo noarch; sudo zypper refresh)'
|
|
|
|
elif [ -x /usr/bin/yum ]; then
|
|
|
|
elif [ -x /usr/bin/yum ]; then
|
|
|
|
PKGMGR="yum"
|
|
|
|
PKGMGR="yum"
|
|
|
|
PKGINST='sudo yum install -y'
|
|
|
|
PKGINST='sudo yum install -y'
|
|
|
@ -43,7 +45,7 @@ is_installed() {
|
|
|
|
|
|
|
|
|
|
|
|
# Build package if not already installed
|
|
|
|
# Build package if not already installed
|
|
|
|
grpi() {
|
|
|
|
grpi() {
|
|
|
|
if ! is_installed "${1##*/}" && ! is_installed trinity-"${1##*/}"; then
|
|
|
|
if ! is_installed trinity-"${1##*/}"; then
|
|
|
|
eval ${grp} ${1}
|
|
|
|
eval ${grp} ${1}
|
|
|
|
RET=$?
|
|
|
|
RET=$?
|
|
|
|
if [ $RET -gt 0 ]; then
|
|
|
|
if [ $RET -gt 0 ]; then
|
|
|
@ -54,32 +56,28 @@ grpi() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# Build package if not already installed, then update repo
|
|
|
|
# Build package if not already installed, then update repo
|
|
|
|
grpiu() {
|
|
|
|
grpiu() {
|
|
|
|
if ! is_installed "${1##*/}" && ! is_installed trinity-"${1##*/}"; then
|
|
|
|
if ! is_installed trinity-"${1##*/}"; then
|
|
|
|
grpi "$1"
|
|
|
|
grpi "$1"
|
|
|
|
eval ${REPOUPDATE}
|
|
|
|
eval ${REPOUPDATE} || exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# Build package if not already installed, then update repo, then install package
|
|
|
|
# Build package if not already installed, then update repo, then install package
|
|
|
|
grpiui() {
|
|
|
|
grpiui() {
|
|
|
|
if ! is_installed "${1##*/}" && ! is_installed trinity-"${1##*/}"; then
|
|
|
|
if ! is_installed trinity-"${1##*/}"; then
|
|
|
|
grpiu "$1"
|
|
|
|
grpiu "$1"
|
|
|
|
eval ${PKGINST} "trinity-${1##*/}"
|
|
|
|
eval ${PKGINST} "trinity-${1##*/}" || exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# Build package if not already installed, then update repo, then install -devel package
|
|
|
|
# Build package if not already installed, then update repo, then install -devel package
|
|
|
|
grpiud() {
|
|
|
|
grpiud() {
|
|
|
|
if ! is_installed "${1##*/}" && ! is_installed trinity-"${1##*/}"; then
|
|
|
|
if ! is_installed trinity-"${1##*/}"; then
|
|
|
|
grpiu "$1"
|
|
|
|
grpiu "$1"
|
|
|
|
eval ${PKGINST} "trinity-${1##*/}"
|
|
|
|
eval ${PKGINST} "trinity-${1##*/}" || exit 1
|
|
|
|
eval ${PKGINST} "trinity-${1##*/}-devel"
|
|
|
|
eval ${PKGINST} "trinity-${1##*/}-devel" || exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Build dependencies
|
|
|
|
# TDE dependencies
|
|
|
|
#if ! rpm -q libqt3-devel && ! rpm -q lib64qt3-devel && ! rpm -q qt3-devel; then
|
|
|
|
|
|
|
|
# grpiu dependencies/qt3
|
|
|
|
|
|
|
|
# eval ${PKGINST} qt3-devel
|
|
|
|
|
|
|
|
#fi
|
|
|
|
|
|
|
|
grpiud dependencies/tqt3
|
|
|
|
grpiud dependencies/tqt3
|
|
|
|
grpiud dependencies/tqtinterface
|
|
|
|
grpiud dependencies/tqtinterface
|
|
|
|
grpiud dependencies/arts
|
|
|
|
grpiud dependencies/arts
|
|
|
@ -90,12 +88,11 @@ grpiud dependencies/libart-lgpl
|
|
|
|
grpiud dependencies/libcaldav
|
|
|
|
grpiud dependencies/libcaldav
|
|
|
|
grpiud dependencies/libcarddav
|
|
|
|
grpiud dependencies/libcarddav
|
|
|
|
grpiud dependencies/tqca
|
|
|
|
grpiud dependencies/tqca
|
|
|
|
grpiu dependencies/tqca-tls
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Build akode now, required for some packages later ...
|
|
|
|
# Extra dependencies
|
|
|
|
grpiud extras/akode
|
|
|
|
grpiud extras/akode
|
|
|
|
|
|
|
|
|
|
|
|
# Build main
|
|
|
|
# TDE main
|
|
|
|
# basic packages
|
|
|
|
# basic packages
|
|
|
|
grpiud tdelibs
|
|
|
|
grpiud tdelibs
|
|
|
|
grpiud tdebase
|
|
|
|
grpiud tdebase
|
|
|
@ -117,13 +114,23 @@ grpiui tdeartwork
|
|
|
|
grpiui tdeedu
|
|
|
|
grpiui tdeedu
|
|
|
|
grpiui tdetoys
|
|
|
|
grpiui tdetoys
|
|
|
|
grpiui tdeutils
|
|
|
|
grpiui tdeutils
|
|
|
|
grpiu extras/trinity-desktop
|
|
|
|
|
|
|
|
eval ${PKGINST} trinity-desktop
|
|
|
|
if ! is_installed trinity-desktop; then
|
|
|
|
|
|
|
|
grpiu extras/trinity-desktop
|
|
|
|
|
|
|
|
eval ${PKGINST} trinity-desktop || exit 1
|
|
|
|
|
|
|
|
# Disable trinity repository from here !!!
|
|
|
|
|
|
|
|
if [ -r "/etc/yum.repos.d/trinity-3.5.13.repo" ]; then
|
|
|
|
|
|
|
|
sed -i "/etc/yum.repos.d/trinity-3.5.13.repo" -e "s|enabled=.*|enabled=0|g"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# devel packages
|
|
|
|
# devel packages
|
|
|
|
grpiud tdesdk
|
|
|
|
grpiud tdesdk
|
|
|
|
grpiui tdevelop
|
|
|
|
grpiui tdevelop
|
|
|
|
grpiui tdewebdev
|
|
|
|
grpiui tdewebdev
|
|
|
|
eval ${PKGINST} trinity-desktop-devel
|
|
|
|
if ! is_installed trinity-desktop-devel; then
|
|
|
|
|
|
|
|
eval ${PKGINST} trinity-desktop-devel || exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Build libraries
|
|
|
|
# Build libraries
|
|
|
|
grpiud libraries/libkdcraw
|
|
|
|
grpiud libraries/libkdcraw
|
|
|
@ -135,6 +142,16 @@ grpiui libraries/libtqt-perl
|
|
|
|
grpiud libraries/python-trinity
|
|
|
|
grpiud libraries/python-trinity
|
|
|
|
grpiud libraries/pytdeextensions
|
|
|
|
grpiud libraries/pytdeextensions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Extra libraries
|
|
|
|
|
|
|
|
if ! is_installed imlib1-devel; then
|
|
|
|
|
|
|
|
grpiu 3rdparty/imlib1
|
|
|
|
|
|
|
|
eval ${PKGINST} imlib1-devel || exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if ! is_installed torsocks; then
|
|
|
|
|
|
|
|
grpiu 3rdparty/torsocks
|
|
|
|
|
|
|
|
eval ${PKGINST} torsocks || exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Build applications
|
|
|
|
# Build applications
|
|
|
|
# K3B is required later for k9copy
|
|
|
|
# K3B is required later for k9copy
|
|
|
|
grpiud applications/k3b
|
|
|
|
grpiud applications/k3b
|
|
|
@ -154,11 +171,12 @@ grpiui applications/gwenview
|
|
|
|
grpiui applications/gwenview-i18n
|
|
|
|
grpiui applications/gwenview-i18n
|
|
|
|
if ! is_installed trinity-k3b-i18n-French; then
|
|
|
|
if ! is_installed trinity-k3b-i18n-French; then
|
|
|
|
grpiu applications/k3b-i18n
|
|
|
|
grpiu applications/k3b-i18n
|
|
|
|
eval ${PKGINST} trinity-k3b-i18n-French
|
|
|
|
eval ${PKGINST} trinity-k3b-i18n-French || exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
grpiui applications/k9copy
|
|
|
|
grpiui applications/k9copy
|
|
|
|
grpiui applications/kaffeine
|
|
|
|
grpiui applications/kaffeine
|
|
|
|
grpiui applications/kaffeine-mozilla
|
|
|
|
grpiui applications/kaffeine-mozilla
|
|
|
|
|
|
|
|
grpiui applications/kasablanca
|
|
|
|
grpiui applications/katapult
|
|
|
|
grpiui applications/katapult
|
|
|
|
grpiui applications/kbarcode
|
|
|
|
grpiui applications/kbarcode
|
|
|
|
grpiui applications/kbfx
|
|
|
|
grpiui applications/kbfx
|
|
|
@ -178,6 +196,7 @@ grpiui applications/kdirstat
|
|
|
|
grpiui applications/keep
|
|
|
|
grpiui applications/keep
|
|
|
|
grpiui applications/kerberostray
|
|
|
|
grpiui applications/kerberostray
|
|
|
|
#grpiui applications/kerry
|
|
|
|
#grpiui applications/kerry
|
|
|
|
|
|
|
|
grpiui applications/kftpgrabber
|
|
|
|
grpiui applications/kile
|
|
|
|
grpiui applications/kile
|
|
|
|
grpiui applications/kima
|
|
|
|
grpiui applications/kima
|
|
|
|
grpiui applications/kiosktool
|
|
|
|
grpiui applications/kiosktool
|
|
|
@ -190,6 +209,7 @@ grpiui applications/knetstats
|
|
|
|
#grpiui applications/knetworkmanager
|
|
|
|
#grpiui applications/knetworkmanager
|
|
|
|
grpiui applications/knights
|
|
|
|
grpiui applications/knights
|
|
|
|
grpiui applications/knowit
|
|
|
|
grpiui applications/knowit
|
|
|
|
|
|
|
|
grpiui applications/knmap
|
|
|
|
grpiui applications/knutclient
|
|
|
|
grpiui applications/knutclient
|
|
|
|
if ! is_installed trinity-koffice-suite; then
|
|
|
|
if ! is_installed trinity-koffice-suite; then
|
|
|
|
grpiu applications/koffice
|
|
|
|
grpiu applications/koffice
|
|
|
@ -203,9 +223,13 @@ grpiui applications/konversation
|
|
|
|
grpiui applications/kopete-otr
|
|
|
|
grpiui applications/kopete-otr
|
|
|
|
grpiui applications/kpicosim
|
|
|
|
grpiui applications/kpicosim
|
|
|
|
grpiui applications/kpilot
|
|
|
|
grpiui applications/kpilot
|
|
|
|
grpiui applications/kpowersave
|
|
|
|
#grpiui applications/kpowersave
|
|
|
|
|
|
|
|
grpiui applications/krecipes
|
|
|
|
grpiui applications/krename
|
|
|
|
grpiui applications/krename
|
|
|
|
grpiui applications/krusader
|
|
|
|
grpiui applications/krusader
|
|
|
|
|
|
|
|
grpiui applications/ksensors
|
|
|
|
|
|
|
|
grpiui applications/kshowmail
|
|
|
|
|
|
|
|
grpiui applications/kshutdown
|
|
|
|
grpiui applications/ksplash-engine-moodin
|
|
|
|
grpiui applications/ksplash-engine-moodin
|
|
|
|
grpiui applications/ksquirrel
|
|
|
|
grpiui applications/ksquirrel
|
|
|
|
grpiui applications/kstreamripper
|
|
|
|
grpiui applications/kstreamripper
|
|
|
@ -216,6 +240,7 @@ grpiui applications/kuickshow
|
|
|
|
grpiui applications/kvirc
|
|
|
|
grpiui applications/kvirc
|
|
|
|
grpiui applications/kvkbd
|
|
|
|
grpiui applications/kvkbd
|
|
|
|
grpiui applications/kvpnc
|
|
|
|
grpiui applications/kvpnc
|
|
|
|
|
|
|
|
grpiui applications/mplayerthumbs
|
|
|
|
grpiui applications/piklab
|
|
|
|
grpiui applications/piklab
|
|
|
|
grpiui applications/potracegui
|
|
|
|
grpiui applications/potracegui
|
|
|
|
grpiui applications/rosegarden
|
|
|
|
grpiui applications/rosegarden
|
|
|
@ -224,6 +249,10 @@ grpiui applications/smb4k
|
|
|
|
grpiui applications/soundkonverter
|
|
|
|
grpiui applications/soundkonverter
|
|
|
|
grpiui applications/tde-guidance
|
|
|
|
grpiui applications/tde-guidance
|
|
|
|
grpiui applications/tdeio-apt
|
|
|
|
grpiui applications/tdeio-apt
|
|
|
|
|
|
|
|
if ! is_installed trinity-tdeio-ftps; then
|
|
|
|
|
|
|
|
grpiu applications/tdeio-ftps
|
|
|
|
|
|
|
|
eval ${PKGINST} trinity-tdeio-ftps || exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
grpiui applications/tdeio-locate
|
|
|
|
grpiui applications/tdeio-locate
|
|
|
|
grpiui applications/tdeio-umountwrapper
|
|
|
|
grpiui applications/tdeio-umountwrapper
|
|
|
|
grpiui applications/tdenetworkmanager
|
|
|
|
grpiui applications/tdenetworkmanager
|
|
|
@ -236,45 +265,40 @@ grpiui applications/tdesvn
|
|
|
|
grpiui applications/tde-systemsettings
|
|
|
|
grpiui applications/tde-systemsettings
|
|
|
|
grpiui applications/tdmtheme
|
|
|
|
grpiui applications/tdmtheme
|
|
|
|
grpiui applications/tellico
|
|
|
|
grpiui applications/tellico
|
|
|
|
|
|
|
|
grpiui applications/tork
|
|
|
|
grpiui applications/twin-style-crystal
|
|
|
|
grpiui applications/twin-style-crystal
|
|
|
|
grpiui applications/wlassistant
|
|
|
|
grpiui applications/wlassistant
|
|
|
|
grpiui applications/yakuake
|
|
|
|
grpiui applications/yakuake
|
|
|
|
eval ${PKGINST} trinity-desktop-applications
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Decoration-related stuff are distribution-dependant.
|
|
|
|
# Decoration-related stuff are distribution-dependant.
|
|
|
|
grpiui applications/gtk-qt-engine
|
|
|
|
if [ "${DIST}" != ".el4" ] && [ "${DIST}" != ".el5" ]; then
|
|
|
|
[ "${DIST:0:3}" = ".el" ] || grpiui applications/gtk3-tqt-engine
|
|
|
|
grpiui applications/gtk-qt-engine
|
|
|
|
grpiui applications/qt4-tqt-theme-engine
|
|
|
|
#grpiui applications/kgtk-qt3
|
|
|
|
grpiui applications/kgtk-qt3
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ! is_installed trinity-desktop-applications; then
|
|
|
|
|
|
|
|
eval ${PKGINST} trinity-desktop-applications || exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ! is_installed trinity-desktop-all; then
|
|
|
|
|
|
|
|
eval ${PKGINST} trinity-desktop-all || exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
# Build extra packages
|
|
|
|
# Build extra packages
|
|
|
|
grpiui extras/icons-crystalsvg-updated
|
|
|
|
grpiui extras/icons-crystalsvg-updated
|
|
|
|
grpiui extras/icons-kfaenza
|
|
|
|
grpiui extras/icons-kfaenza
|
|
|
|
grpiui extras/icons-oxygen
|
|
|
|
grpiui extras/icons-oxygen
|
|
|
|
grpiui extras/kasablanca
|
|
|
|
|
|
|
|
#grpiui extras/kcheckgmail
|
|
|
|
#grpiui extras/kcheckgmail
|
|
|
|
#grpiui extras/kdebluetooth
|
|
|
|
#grpiui extras/kdebluetooth
|
|
|
|
grpiui extras/kftpgrabber
|
|
|
|
|
|
|
|
grpiui extras/kickoff-i18n
|
|
|
|
grpiui extras/kickoff-i18n
|
|
|
|
grpiui extras/knmap
|
|
|
|
|
|
|
|
#grpiui extras/knoda
|
|
|
|
#grpiui extras/knoda
|
|
|
|
grpiui extras/ksensors
|
|
|
|
|
|
|
|
grpiui extras/kshowmail
|
|
|
|
|
|
|
|
grpiui extras/mplayerthumbs
|
|
|
|
|
|
|
|
grpiui extras/style-ia-ora
|
|
|
|
grpiui extras/style-ia-ora
|
|
|
|
if ! is_installed trinity-tdeio-ftps-plugin; then
|
|
|
|
|
|
|
|
grpiu extras/tdeio-ftps
|
|
|
|
|
|
|
|
eval ${PKGINST} trinity-tdeio-ftps-plugin
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
#grpiui extras/tdeio-sysinfo
|
|
|
|
#grpiui extras/tdeio-sysinfo
|
|
|
|
grpiui extras/theme-baghira
|
|
|
|
grpiui extras/theme-baghira
|
|
|
|
grpiu 3rdparty/torsocks
|
|
|
|
|
|
|
|
eval ${PKGINST} torsocks
|
|
|
|
|
|
|
|
grpiui extras/tork
|
|
|
|
|
|
|
|
#grpiui extras/trinity-desktop
|
|
|
|
#grpiui extras/trinity-desktop
|
|
|
|
#grpiui extras/trinity-live
|
|
|
|
#grpiui extras/trinity-live
|
|
|
|
grpiui extras/twinkle
|
|
|
|
grpiui extras/twinkle
|
|
|
|
eval ${PKGINST} trinity-desktop-extras
|
|
|
|
eval ${PKGINST} trinity-desktop-extras
|
|
|
|
|
|
|
|
|
|
|
|
eval ${PKGINST} trinity-desktop-all
|
|
|
|
|
|
|
|