void-packages/srcpkgs/libreoffice-bin/template

42 lines
1.4 KiB
Text
Raw Normal View History

# Template file for 'libreoffice-bin'
pkgname=libreoffice-bin
2015-01-14 20:30:17 +00:00
version=4.3.5
revision=1
2014-02-14 12:20:15 +00:00
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.libreoffice.org/"
license="LGPL-3"
short_desc="Productivity suite compatible with other major office suites (binary build)"
_disturi="http://download.documentfoundation.org/libreoffice/stable/${version}/deb"
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
_arch=x86-64
distfiles="${_disturi}/x86_64/LibreOffice_${version}_Linux_${_arch}_deb.tar.gz"
2015-01-14 20:30:17 +00:00
checksum=db8d9925eb1170e4a1b0c29db4e59f5b4de08a61418ebd3d5ac0b1f376fa6e93
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
_arch=x86
distfiles="${_disturi}/x86/LibreOffice_${version}_Linux_${_arch}_deb.tar.gz"
2015-01-14 20:30:17 +00:00
checksum=f1afb75f457b7c6407d989445a69e0db5b8168bfe8d9b42a4f20aa1e2a3f111b
fi
only_for_archs="i686 x86_64"
2015-01-14 20:30:17 +00:00
wrksrc="LibreOffice_${version}.2_Linux_${_arch}_deb"
depends="shared-mime-info desktop-file-utils hicolor-icon-theme"
provides="libreoffice-${version}_${revision}"
replaces="libreoffice>=0"
allow_unknown_shlibs=yes
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
for a in ${programs} ; do
2014-02-14 12:20:15 +00:00
ln -fs /opt/libreoffice${version%.*}/program/$a ${DESTDIR}/usr/bin/$a
done
ln -s libreoffice${version%.*} ${DESTDIR}/usr/bin/libreoffice
}