2013-02-04 17:18:07 +01:00
|
|
|
# Template file for 'libreoffice-bin'
|
|
|
|
pkgname=libreoffice-bin
|
2014-02-14 13:20:15 +01:00
|
|
|
version=4.2.0
|
2013-05-22 15:07:25 +02:00
|
|
|
revision=1
|
2014-02-14 13:20:15 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-02-04 17:18:07 +01:00
|
|
|
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"
|
2014-02-14 13:20:15 +01:00
|
|
|
checksum=3dafbfc87f61da3d06d35aa1a4265386e4dde0bd7c477e8d1ed4d7f40fafe023
|
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"
|
2014-02-14 13:20:15 +01:00
|
|
|
checksum=6d3fb1c2ba881b3f12651c8fde2d6fa4917d5ffa8e7c6beb175b5964e5bc9d13
|
2013-02-04 17:18:07 +01:00
|
|
|
fi
|
|
|
|
only_for_archs="i686 x86_64"
|
2014-02-14 13:20:15 +01:00
|
|
|
wrksrc="LibreOffice_${version}.4_Linux_${_arch}_deb"
|
2013-12-19 07:00:10 +01:00
|
|
|
makedepends="shared-mime-info desktop-file-utils hicolor-icon-theme"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="${makedepends}"
|
|
|
|
allow_unknown_shlibs=yes
|
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
|
|
|
|
# install symlinked programs to /usr
|
|
|
|
programs="soffice scalc swriter simpress sdraw sbase"
|
2013-12-19 07:00:10 +01:00
|
|
|
vmkdir usr/bin
|
2013-02-04 17:18:07 +01:00
|
|
|
for a in ${programs} ; do
|
2014-02-14 13:20:15 +01:00
|
|
|
ln -fs /opt/libreoffice${version%.*}/program/$a ${DESTDIR}/usr/bin/$a
|
2013-02-04 17:18:07 +01:00
|
|
|
done
|
|
|
|
}
|