46 lines
1.5 KiB
Bash
46 lines
1.5 KiB
Bash
# Template file for 'libreoffice-bin'
|
|
pkgname=libreoffice-bin
|
|
version=5.0.0
|
|
revision=1
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.libreoffice.org/"
|
|
license="LGPL-3"
|
|
short_desc="Productivity suite, formerly OpenOffice.org (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"
|
|
checksum=d639c814ee01fa122f34f8b7b374697a504c2c625a7bae1a051ce60b08a718e8
|
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
_arch=x86
|
|
distfiles="${_disturi}/x86/LibreOffice_${version}_Linux_${_arch}_deb.tar.gz"
|
|
checksum=6b2595d46c3a44ccddeaa624c3d36d06b882fb22a743fb19bf71102391a823b1
|
|
fi
|
|
|
|
only_for_archs="i686 x86_64"
|
|
wrksrc="LibreOffice_${version}.5_Linux_${_arch}_deb"
|
|
depends="shared-mime-info desktop-file-utils hicolor-icon-theme"
|
|
provides="libreoffice-${version}_${revision}"
|
|
replaces="libreoffice>=0"
|
|
allow_unknown_shlibs=yes
|
|
nodebug=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"
|
|
vmkdir usr/bin
|
|
for a in ${programs} ; do
|
|
ln -fs /opt/libreoffice${version%.*}/program/$a ${DESTDIR}/usr/bin/$a
|
|
done
|
|
ln -s libreoffice${version%.*} ${DESTDIR}/usr/bin/libreoffice
|
|
mv ${DESTDIR}/usr/local/bin/* ${DESTDIR}/usr/bin
|
|
mv ${DESTDIR}/usr/local/share/* ${DESTDIR}/usr/share/
|
|
rm -rf ${DESTDIR}/usr/local
|
|
}
|