2013-02-04 16:18:07 +00:00
|
|
|
# Template file for 'libreoffice-bin'
|
|
|
|
pkgname=libreoffice-bin
|
2015-04-09 07:10:03 +00:00
|
|
|
version=4.4.2
|
2014-11-14 13:06:03 +00:00
|
|
|
revision=1
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-02-04 16:18:07 +00:00
|
|
|
homepage="http://www.libreoffice.org/"
|
|
|
|
license="LGPL-3"
|
|
|
|
short_desc="Productivity suite compatible with other major office suites (binary build)"
|
|
|
|
|
2013-05-22 13:07:25 +00:00
|
|
|
_disturi="http://download.documentfoundation.org/libreoffice/stable/${version}/deb"
|
2013-04-13 08:15:49 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2013-02-04 16:18:07 +00:00
|
|
|
_arch=x86-64
|
2013-05-22 13:07:25 +00:00
|
|
|
distfiles="${_disturi}/x86_64/LibreOffice_${version}_Linux_${_arch}_deb.tar.gz"
|
2015-04-09 07:10:03 +00:00
|
|
|
checksum=949aca8eeb14b218cb1d73a1f6b434230013adcd7603bfaebaa144dae596f80d
|
2013-04-13 08:15:49 +00:00
|
|
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
2013-02-04 16:18:07 +00:00
|
|
|
_arch=x86
|
2013-05-22 13:07:25 +00:00
|
|
|
distfiles="${_disturi}/x86/LibreOffice_${version}_Linux_${_arch}_deb.tar.gz"
|
2015-04-09 07:10:03 +00:00
|
|
|
checksum=91f375403a3c3b57243b9eed73312d1b7a26d998a930674a8def8bb538e51a6a
|
2013-02-04 16:18:07 +00:00
|
|
|
fi
|
|
|
|
only_for_archs="i686 x86_64"
|
2015-01-14 20:30:17 +00:00
|
|
|
wrksrc="LibreOffice_${version}.2_Linux_${_arch}_deb"
|
2014-11-14 13:06:03 +00:00
|
|
|
depends="shared-mime-info desktop-file-utils hicolor-icon-theme"
|
|
|
|
provides="libreoffice-${version}_${revision}"
|
|
|
|
replaces="libreoffice>=0"
|
2014-01-01 15:10:11 +00:00
|
|
|
allow_unknown_shlibs=yes
|
2015-04-09 07:10:03 +00:00
|
|
|
nodebug=yes
|
2013-02-04 16:18:07 +00: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 06:00:10 +00:00
|
|
|
vmkdir usr/bin
|
2013-02-04 16:18:07 +00:00
|
|
|
for a in ${programs} ; do
|
2014-02-14 12:20:15 +00:00
|
|
|
ln -fs /opt/libreoffice${version%.*}/program/$a ${DESTDIR}/usr/bin/$a
|
2013-02-04 16:18:07 +00:00
|
|
|
done
|
2014-11-14 13:06:03 +00:00
|
|
|
ln -s libreoffice${version%.*} ${DESTDIR}/usr/bin/libreoffice
|
2015-04-09 07:10:03 +00:00
|
|
|
mv ${DESTDIR}/usr/local/bin/* ${DESTDIR}/usr/bin
|
|
|
|
mv ${DESTDIR}/usr/local/share/* ${DESTDIR}/usr/share/
|
|
|
|
rm -rf ${DESTDIR}/usr/local
|
2013-02-04 16:18:07 +00:00
|
|
|
}
|