Adding jre and jdk and updates

This commit is contained in:
Manuel Tortosa 2010-06-02 21:39:46 +00:00
parent ce7cdf3aae
commit c17469e8f4
15 changed files with 271 additions and 8 deletions

View File

@ -1,12 +1,15 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=akonadi-googledata
pkgver=1.0.1
pkgrel=1
pkgrel=2
pkgdesc="Akonadi GoogleData Plugin"
arch=('i686' 'x86_64')
url="http://pim.kde.org/akonadi/"

View File

@ -1,12 +1,15 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
arch=(i686 x86_64)
pkgname=choqok-svn
pkgver=1132944
pkgver=1133279
pkgrel=1
pkgdesc="A Twitter/identi.ca/laconica client for KDE 4."
url="http://choqok.gnufolks.org"

View File

@ -1,12 +1,15 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=digikam
pkgver=1.2.0
pkgrel=1
pkgrel=2
pkgdesc="Digital photo management application for kde"
arch=('i686' 'x86_64')
license=('GPL')

86
jdk/PKGBUILD Normal file
View File

@ -0,0 +1,86 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=jdk
pkgver=6u20
pkgrel=1
pkgdesc="Sun's Java Development Kit"
arch=('i686' 'x86_64')
[ "${CARCH}" = "i686" ] && ARCH=i586
[ "${CARCH}" = "x86_64" ] && ARCH=amd64
url="http://java.sun.com"
depends=('glibc' 'jre')
install="jdk.install"
source=(http://download.java.net/dlj/binaries/jdk-${pkgver}-dlj-linux-${ARCH}.bin
https://jdk-distros.dev.java.net/source/browse/*checkout*/jdk-distros/trunk/utils/construct.sh
jdk.profile
java-control-panel.desktop
java-monitoring-and-management-console.desktop
java-policy-settings.desktop
java-visualvm.desktop
java-web-start.desktop)
[ "$CARCH" = "i686" ] && md5sums=('37afae8ef2481b85b4c9b0356c5d7b40'
'94065b612df0046d9ae758943f9f6a75'
'7aaac9ec3e440b92361c6561ac00424a'
'e4d814c0f310d77ed6990c731bccd0fb'
'4bc2b0be93f76ed07b471e3c89eb5a8a'
'8e3cec7ab641ec449cabd068be583f5c'
'9ba148ebabce8ed3351b813a9a66b6e5'
'568451cf45fc8c7adb83a222a61ca2c6')
[ "$CARCH" = "x86_64" ] && md5sums=('e0d03306f57ce1b49d972a21cbb920a0'
'94065b612df0046d9ae758943f9f6a75'
'7aaac9ec3e440b92361c6561ac00424a'
'e4d814c0f310d77ed6990c731bccd0fb'
'4bc2b0be93f76ed07b471e3c89eb5a8a'
'8e3cec7ab641ec449cabd068be583f5c'
'9ba148ebabce8ed3351b813a9a66b6e5'
'568451cf45fc8c7adb83a222a61ca2c6')
replaces=('j2sdk')
conflicts=('java-environment' 'j2sdk')
provides=('java-environment=6' 'j2sdk')
license=('custom')
build() {
cd ${srcdir}
mkdir unbundle-jdk
cd unbundle-jdk
sh ../jdk-${pkgver}-dlj-linux-${ARCH}.bin --accept-license
cd ..
sh construct.sh unbundle-jdk linux-jdk linux-jre
}
package() {
cd ${srcdir}
#copy icon
install -Dm644 ${srcdir}/linux-jdk/jre/lib/desktop/icons/hicolor/48x48/apps/sun-java.png ${pkgdir}/usr/share/pixmaps/java.png
rm -rf linux-jdk/jre
mkdir -p ${pkgdir}/opt
mv linux-jdk ${pkgdir}/opt/java
install -D -m755 ${srcdir}/${pkgname}.profile ${pkgdir}/etc/profile.d/${pkgname}.sh
mkdir -p ${pkgdir}/usr/share/licenses/jdk
cp ${pkgdir}/opt/java/COPYRIGHT ${pkgdir}/usr/share/licenses/jdk
cp ${pkgdir}/opt/java/LICENSE ${pkgdir}/usr/share/licenses/jdk
cp ${pkgdir}/opt/java/THIRDPARTYLICENSEREADME.txt ${pkgdir}/usr/share/licenses/jdk
#desktop entries
install -Dm644 ${srcdir}/java-control-panel.desktop ${pkgdir}/usr/share/applications/java-control-panel.desktop
install -Dm644 ${srcdir}/java-monitoring-and-management-console.desktop ${pkgdir}/usr/share/applications/java-monitoring-and-management-console.desktop
install -Dm644 ${srcdir}/java-policy-settings.desktop ${pkgdir}/usr/share/applications/java-policy-settings.desktop
install -Dm644 ${srcdir}/java-visualvm.desktop ${pkgdir}/usr/share/applications/java-visualvm.desktop
install -Dm644 ${srcdir}/java-web-start.desktop ${pkgdir}/usr/share/applications/java-web-start.desktop
}

View File

@ -0,0 +1,12 @@
[Desktop Entry]
Exec=/opt/java/bin/jcontrol
GenericName[cs]=Nastavení prostředí Java
GenericName=Java Environment Settings
Icon=java
Name[cs]=Nastavení Javy
Name=Java Control Panel
Path=
StartupNotify=true
Terminal=false
Type=Application
Categories=Settings;Java;

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Exec=/opt/java/bin/jconsole
Icon=java
Name[cs]=Konzole monitorování a správy prostředí Java
Name=Java Monitoring and Management Console
StartupNotify=true
Terminal=false
Type=Application
Categories=Development;Java;

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Exec=/opt/java/bin/policytool
Icon=java
Name[cs]=Nastavení politiky Java aplikací
Name=Java Policy Settings
Path=
StartupNotify=true
Terminal=false
Type=Application
Categories=Settings;Java;

11
jdk/java-visualvm.desktop Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Exec=/opt/java/bin/jvisualvm
GenericName[cs]=Nástroj pro monitorování a sledování výkonu Java aplikací
GenericName=Java Monitoring and Performance Monitoring Tool
Icon=java
Name=Java VisualVM
Path=
StartupNotify=true
Terminal=false
Type=Application
Categories=Development;Java;

View File

@ -0,0 +1,13 @@
[Desktop Entry]
Exec=/opt/java/bin/javaws -viewer
GenericName[cs]=Spravovat a spouštět aplikace Java Web Start
GenericName=Manage and run Java Web Start Applications
Icon=java
MimeType=application/x-java-jnlp-file;
Name[cs]=Java Web Start
Name=Java Web Start
Path=
StartupNotify=true
Terminal=false
Type=Application
Categories=Network;Java;

11
jdk/jdk.install Normal file
View File

@ -0,0 +1,11 @@
post_upgrade() {
post_install $1
}
post_install() {
echo "The jdk package is licensed software."
echo "You MUST read and agree to the license stored in"
echo "/opt/java/LICENSE before using it."
}

4
jdk/jdk.profile Normal file
View File

@ -0,0 +1,4 @@
export J2SDKDIR=/opt/java
export PATH=$PATH:/opt/java/bin
export JAVA_HOME=/opt/java
export DERBY_HOME=/opt/java/db

69
jre/PKGBUILD Normal file
View File

@ -0,0 +1,69 @@
#
# KDE SC Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=jre
pkgver=6u20
pkgrel=1
pkgdesc="Sun's java runtime environment"
arch=('i686' 'x86_64')
[ "$CARCH" = "i686" ] && ARCH=i586
[ "$CARCH" = "x86_64" ] && ARCH=amd64
url="http://java.sun.com"
depends=('glibc' 'libxtst')
install="jre.install"
source=(http://download.java.net/dlj/binaries/jdk-${pkgver}-dlj-linux-$ARCH.bin
https://jdk-distros.dev.java.net/source/browse/*checkout*/jdk-distros/trunk/utils/construct.sh
jre.profile)
[ "$CARCH" = "i686" ] && md5sums=('37afae8ef2481b85b4c9b0356c5d7b40'
'94065b612df0046d9ae758943f9f6a75'
'50b4f5ac4129097461d246645d73a622')
[ "$CARCH" = "x86_64" ] && md5sums=('e0d03306f57ce1b49d972a21cbb920a0'
'94065b612df0046d9ae758943f9f6a75'
'50b4f5ac4129097461d246645d73a622')
replaces=('j2re')
conflicts=('j2re' 'java-runtime')
provides=('j2re' 'java-runtime=6')
license=('custom')
build() {
cd ${srcdir}
mkdir unbundle-jdk
cd unbundle-jdk
sh ../jdk-${pkgver}-dlj-linux-$ARCH.bin --accept-license
cd ..
sh construct.sh unbundle-jdk linux-jdk linux-jre
}
package() {
cd ${srcdir}
mkdir -p ${pkgdir}/opt/java
mv linux-jdk/jre ${pkgdir}/opt/java
install -Dm755 ${srcdir}/${pkgname}.profile ${pkgdir}/etc/profile.d/${pkgname}.sh
mkdir -p ${pkgdir}/usr/lib/mozilla/plugins
if [ "$CARCH" = "i686" ]; then
ln -s /opt/java/jre/lib/i386/libnpjp2.so ${pkgdir}/usr/lib/mozilla/plugins
else ln -s /opt/java/jre/lib/amd64/libnpjp2.so ${pkgdir}/usr/lib/mozilla/plugins
fi
mkdir -p ${pkgdir}/usr/share/licenses/jre
cp ${pkgdir}/opt/java/jre/COPYRIGHT ${pkgdir}/usr/share/licenses/jre
cp ${pkgdir}/opt/java/jre/LICENSE ${pkgdir}/usr/share/licenses/jre
cp ${pkgdir}/opt/java/jre/THIRDPARTYLICENSEREADME.txt ${pkgdir}/usr/share/licenses/jre
# Fix system prefs folder (FS#18872)
install -dm755 ${pkgdir}/etc/.java/.systemPrefs
}

22
jre/jre.install Normal file
View File

@ -0,0 +1,22 @@
post_upgrade() {
post_install $1
}
post_install() {
echo "The jre package is licensed software."
echo "You MUST read and agree to the license stored in"
echo "/opt/java/jre/LICENSE before using it."
if [ -f /etc/mailcap ] ; then
sed -e '/application\/x-java-jnlp-file/d' -i /etc/mailcap
fi
echo 'application/x-java-jnlp-file;/opt/java/jre/bin/javaws %s' >>/etc/mailcap
}
post_remove() {
mailcap=$(grep -v 'application/x-java-jnlp-file' /etc/mailcap)
if [ "$mailcap" != "" ] ; then
sed -e '/application\/x-java-jnlp-file/d' -i /etc/mailcap
else
rm /etc/mailcap
fi
}

4
jre/jre.profile Normal file
View File

@ -0,0 +1,4 @@
export PATH=$PATH:/opt/java/jre/bin
if [ ! -f /etc/profile.d/jdk.sh ]; then
export JAVA_HOME=/opt/java/jre
fi

View File

@ -1,12 +1,15 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
# KDE SC Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=kbluetooth
pkgver=0.4.2
pkgrel=1
pkgrel=2
pkgdesc="A collection of Bluetooth utilities and modules for KDE based on BlueZ"
arch=('i686' 'x86_64')
url="http://www.kde-apps.org/content/show.php/kbluetooth?content=112110"