parent
61c9cb24d0
commit
7b26da834f
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
TDE_VERSION=${1:-14.0.0}
|
||||
ARCH=$(uname -i)
|
||||
RPMDIR=$(rpm -E %{_rpmdir}.tde-${TDE_VERSION})
|
||||
|
||||
if [ -x /usr/bin/yum ]; then
|
||||
cat <<EOF >/tmp/rpmbuild-tde.repo
|
||||
[rpmbuild.${ARCH}]
|
||||
name=rpmbuild.${ARCH}
|
||||
baseurl=file://${RPMDIR}/${ARCH}
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
|
||||
[rpmbuild.noarch]
|
||||
name=rpmbuild.noarch
|
||||
baseurl=file://${RPMDIR}/noarch
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
EOF
|
||||
sudo mv -f /tmp/rpmbuild-tde.repo /etc/yum.repos.d/
|
||||
fi
|
@ -0,0 +1,46 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Gets the RPM package name from the component name.
|
||||
# This is useful because some RPM packages do not have prefix "trinity"
|
||||
# while others do.
|
||||
#
|
||||
# E.g :
|
||||
# trinity-qt3 => qt3
|
||||
# trinity-tdelibs => trinity-tdelibs
|
||||
|
||||
|
||||
PKGCATEGORY="${1%%/*}"
|
||||
PKGNAME="${1##*/}"
|
||||
DEVEL="$2"
|
||||
|
||||
# Language package: install only French language package
|
||||
case "${PKGNAME}" in
|
||||
"k3b-i18n"|"koffice-i18n"|"tde-i18n") PKGNAME="${PKGNAME}-French";;
|
||||
"koffice") PKGNAME="${PKGNAME}-suite";;
|
||||
esac
|
||||
|
||||
# Use the Trinity Prefix, or not.
|
||||
case "${PKGNAME}" in
|
||||
"trinity-"*|"qt3"|"python-qt3"|"esound") PREFIX="";;
|
||||
"gnuchess"|"htdig"|"imlib1"|"libotr3"|"lilypond"|"mftrace"|"pcsc-perl"|"torsocks"|"wv2") PREFIX="";;
|
||||
"curl") PREFIX="trinity-lib";;
|
||||
*) PREFIX="trinity-";;
|
||||
esac
|
||||
|
||||
echo "${PREFIX}${PKGNAME}"
|
||||
|
||||
if [ -n "${DEVEL}" ]; then
|
||||
# Check if development package is required.
|
||||
# Applications do NOT have development packages
|
||||
case "${PKGCATEGORY}" in
|
||||
"applications") if [ "${PKGNAME}" != "k3b" ]; then exit 0; fi;;
|
||||
esac
|
||||
# Other packags NOT having development package
|
||||
case "${PKGNAME}" in
|
||||
"hal-info"|"lilypond"|"mftrace"|"pcsc-perl"|"torsocks") exit 0;;
|
||||
"tqca-tls"|"tdeadmin"|"tdetoys"|"tde-i18n"*|"tdeaddons"|"tdeartwork"|"libtqt-perl") exit 0;;
|
||||
esac
|
||||
|
||||
echo "${PREFIX}${PKGNAME}-devel"
|
||||
fi
|
||||
|
@ -0,0 +1,63 @@
|
||||
#!/bin/bash
|
||||
|
||||
LIB="$1"
|
||||
LIBDIR="$(rpm -E %_libdir)"
|
||||
FILENAME="${LIB}.la"
|
||||
FILE="${LIBDIR}/${FILENAME}"
|
||||
|
||||
if [ -r "${FILE}" ]; then
|
||||
echo "Already exists !!! Abort"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
LIBLONG="$(echo ${LIBDIR}/${LIB}.so.*.*)"
|
||||
LIBSHORT="$(echo ${LIBDIR}/${LIB}.so.?)"
|
||||
|
||||
echo "Library: ${LIBLONG} | ${LIBSHORT}"
|
||||
|
||||
|
||||
cat <<EOF >/tmp/$LIB.$$
|
||||
# ${FILENAME} - a libtool library file
|
||||
# Generated by libtool (GNU libtool) 2.4.2
|
||||
#
|
||||
# Please DO NOT delete this file!
|
||||
# It is necessary for linking the library.
|
||||
|
||||
# The name that we can dlopen(3).
|
||||
dlname='${LIBSHORT}'
|
||||
|
||||
# Names of this library.
|
||||
library_names='${LIBLONG} ${LIBSHORT} ${LIB}.so'
|
||||
|
||||
# The name of the static archive.
|
||||
old_library='${LIB}.a'
|
||||
|
||||
# Linker flags that can not go in dependency_libs.
|
||||
inherited_linker_flags=''
|
||||
|
||||
# Libraries that this one depends upon.
|
||||
dependency_libs=' -lm'
|
||||
|
||||
# Names of additional weak libraries provided by this library
|
||||
weak_library_names=''
|
||||
|
||||
# Version information for ${LIB}.
|
||||
current=4
|
||||
age=2
|
||||
revision=0
|
||||
|
||||
# Is this an already installed library?
|
||||
installed=yes
|
||||
|
||||
# Should we warn about portability when linking against -modules?
|
||||
shouldnotlink=no
|
||||
|
||||
# Files to dlopen/dlpreopen
|
||||
dlopen=''
|
||||
dlpreopen=''
|
||||
|
||||
# Directory that this library needs to be installed in:
|
||||
libdir='${LIBDIR}'
|
||||
EOF
|
||||
|
||||
sudo mv "/tmp/$LIB.$$" "${FILE}"
|
Loading…
Reference in new issue