2013-02-04 16:18:07 +00:00
|
|
|
# Template file for 'libreoffice-bin'
|
|
|
|
pkgname=libreoffice-bin
|
2013-12-19 06:00:10 +00:00
|
|
|
version=4.1.4
|
2013-05-22 13:07:25 +00:00
|
|
|
revision=1
|
2013-02-04 16:18:07 +00:00
|
|
|
maintainer="pancake <pancake@nopcode.org>"
|
|
|
|
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"
|
2013-12-19 06:00:10 +00:00
|
|
|
checksum=199f0c572c1a4a77705b3518b3e659194870904bc54903c42b361677f80f4997
|
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"
|
2013-12-19 06:00:10 +00:00
|
|
|
checksum=05fc65f52aeca01c9d38a6155943029e7e6b8ad5216765f255a8ad466033a36d
|
2013-02-04 16:18:07 +00:00
|
|
|
fi
|
|
|
|
only_for_archs="i686 x86_64"
|
2013-09-17 09:48:56 +00:00
|
|
|
wrksrc="LibreOffice_${version}.2_Linux_${_arch}_deb"
|
2013-12-19 06:00:10 +00:00
|
|
|
makedepends="shared-mime-info desktop-file-utils hicolor-icon-theme"
|
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
|
2013-12-19 06:00:10 +00:00
|
|
|
ln -fs /opt/libreoffice4.1/program/$a ${DESTDIR}/usr/bin/$a
|
2013-02-04 16:18:07 +00:00
|
|
|
done
|
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
libreoffice-bin_package() {
|
2013-12-19 06:00:10 +00:00
|
|
|
depends="${makedepends}"
|
|
|
|
allow_unknown_shlibs=yes
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
2013-05-22 14:36:37 +00:00
|
|
|
vmove all
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|