2013-02-04 17:18:07 +01:00
|
|
|
# Template file for 'libreoffice-bin'
|
|
|
|
pkgname=libreoffice-bin
|
2013-07-28 19:47:29 +02:00
|
|
|
version=4.1.0
|
2013-05-22 15:07:25 +02:00
|
|
|
revision=1
|
2013-02-04 17:18:07 +01:00
|
|
|
maintainer="pancake <pancake@nopcode.org>"
|
|
|
|
homepage="http://www.libreoffice.org/"
|
|
|
|
license="LGPL-3"
|
|
|
|
short_desc="Productivity suite compatible with other major office suites (binary build)"
|
|
|
|
|
2013-05-22 15:07:25 +02:00
|
|
|
_disturi="http://download.documentfoundation.org/libreoffice/stable/${version}/deb"
|
2013-04-13 10:15:49 +02:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2013-02-04 17:18:07 +01:00
|
|
|
_arch=x86-64
|
2013-05-22 15:07:25 +02:00
|
|
|
distfiles="${_disturi}/x86_64/LibreOffice_${version}_Linux_${_arch}_deb.tar.gz"
|
2013-07-28 19:47:29 +02:00
|
|
|
checksum=61c6e8d105b06fa649e54033857f3d87d60a5e75e9699df3ce285899883ed9d8
|
2013-04-13 10:15:49 +02:00
|
|
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
2013-02-04 17:18:07 +01:00
|
|
|
_arch=x86
|
2013-05-22 15:07:25 +02:00
|
|
|
distfiles="${_disturi}/x86/LibreOffice_${version}_Linux_${_arch}_deb.tar.gz"
|
2013-07-28 19:47:29 +02:00
|
|
|
checksum=b2c7936d3e7fe36180729af11b9a12069c134632c2804ebf5776806de45a2d60
|
2013-02-04 17:18:07 +01:00
|
|
|
fi
|
|
|
|
only_for_archs="i686 x86_64"
|
2013-07-28 19:47:29 +02:00
|
|
|
wrksrc="LibreOffice_${version}.4_Linux_${_arch}_deb"
|
|
|
|
makedepends="libpng-devel"
|
2013-02-04 17:18:07 +01:00
|
|
|
|
|
|
|
do_install() {
|
|
|
|
cd DEBS
|
|
|
|
mkdir -p ${DESTDIR}
|
|
|
|
for a in *.deb ; do
|
|
|
|
ar x $a
|
|
|
|
tar xzpvf data.tar.gz -C ${DESTDIR}
|
|
|
|
done
|
|
|
|
# hack the missing shlibs!
|
2013-07-28 19:47:29 +02:00
|
|
|
p=/opt/libreoffice4.1/program/
|
2013-02-04 17:18:07 +01:00
|
|
|
d=${DESTDIR}/$p
|
|
|
|
rm -f ${d}/libpng12.so.0
|
|
|
|
ln -fs /usr/lib/libpng.so ${d}/libpng12.so.0
|
|
|
|
cd ${d}
|
|
|
|
hack_shlibs="
|
|
|
|
libjawt.so
|
|
|
|
libkdeui.so.4
|
|
|
|
libkdecore.so.4
|
|
|
|
libqt-mt.so.3
|
|
|
|
libkabc.so.1
|
|
|
|
libkio.so.4
|
2013-07-28 19:47:29 +02:00
|
|
|
libgnomevfs-2.so.0
|
|
|
|
libsqlite3.so
|
2013-02-04 17:18:07 +01:00
|
|
|
"
|
|
|
|
for a in ${hack_shlibs} ; do
|
|
|
|
ln -fs ./libpng12.so.0 ./${a}
|
|
|
|
done
|
|
|
|
# install symlinked programs to /usr
|
|
|
|
programs="soffice scalc swriter simpress sdraw sbase"
|
|
|
|
mkdir -p ${DESTDIR}/usr/bin
|
|
|
|
for a in ${programs} ; do
|
2013-02-04 18:37:12 +01:00
|
|
|
ln -fs ${p}/$a ${DESTDIR}/usr/bin/$a
|
2013-02-04 17:18:07 +01:00
|
|
|
done
|
|
|
|
}
|
2013-04-13 10:15:49 +02:00
|
|
|
|
|
|
|
libreoffice-bin_package() {
|
|
|
|
pkg_install() {
|
2013-05-22 16:36:37 +02:00
|
|
|
vmove all
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|