void-packages/srcpkgs/libreoffice-bin/template

40 lines
1.3 KiB
Plaintext
Raw Normal View History

# Template file for 'libreoffice-bin'
pkgname=libreoffice-bin
2014-04-04 21:09:07 +02:00
version=4.2.2
revision=1
2014-02-14 13:20:15 +01: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"
2014-04-04 21:09:07 +02:00
checksum=9e272af7145a27236b31b3fed5b906914913d80b7442b727661f0dc3ab04b829
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
_arch=x86
distfiles="${_disturi}/x86/LibreOffice_${version}_Linux_${_arch}_deb.tar.gz"
2014-04-04 21:09:07 +02:00
checksum=dfbe2ad09a0caf994e2910f8135392211d9b28bcb9820875670eaf52131d99c4
fi
only_for_archs="i686 x86_64"
wrksrc="LibreOffice_${version}.1_Linux_${_arch}_deb"
2013-12-19 07:00:10 +01:00
makedepends="shared-mime-info desktop-file-utils hicolor-icon-theme"
depends="${makedepends}"
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 07:00:10 +01:00
vmkdir usr/bin
for a in ${programs} ; do
2014-02-14 13:20:15 +01:00
ln -fs /opt/libreoffice${version%.*}/program/$a ${DESTDIR}/usr/bin/$a
done
}