forked from ports/contrib
[notify] libreoffice: renamed to libreoffice-bin to make way for a source build of libreoffice, this keeps inline with such ports as thundebird-bin and firefox-bin
This commit is contained in:
parent
e61036f84a
commit
74f2b7f477
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF32JdaLf2yzp2nDv9nm1+aaaPAnc3g266ubTt4YW5o+DZwTqcXnWaFpw9/MtcQqUxfpeiZSkKJam0G2sUAnN0rwk=
|
||||
SHA256 (Pkgfile) = 2e9d7eb0231f2cf413e3e1030634536b792bca5999fa673632285cb9a892c9fe
|
||||
RWSagIOpLGJF3yjBE+8P7Bf65hX8aJgaEGo1hd43XY7UpXebuh/eLTXNamVGaTFTE/AnS/YF8jHqcrTbfFPN2xCMTfXICAu7ygE=
|
||||
SHA256 (Pkgfile) = c3e78071ee6936311f6e3c372f18d7bb31c3763e3dd109d6cf1b8f51b0dc60c5
|
||||
SHA256 (.footprint) = 990640446003903b234e372c3b89610c4825ec473a7276104634ee69aa7d2308
|
||||
SHA256 (LibreOffice_6.2.5_Linux_x86-64_rpm.tar.gz) = 909cb452c2a52f625048da4b660c6458ec2432f9283116f508c3ad29c37ec8e7
|
@ -4,10 +4,10 @@
|
||||
# Packager: Bartlomiej Palmowski, rotwang at crux dot org dot pl
|
||||
# Depends on: cups dbus-glib desktop-file-utils glu gtk krb5 shared-mime-info xorg-libxaw xorg-libxi
|
||||
|
||||
name=libreoffice
|
||||
name=libreoffice-bin
|
||||
version=6.2.5
|
||||
release=1
|
||||
source=(http://download.documentfoundation.org/$name/stable/$version/rpm/x86_64/LibreOffice_${version}_Linux_x86-64_rpm.tar.gz)
|
||||
source=(http://download.documentfoundation.org/libreoffice/stable/$version/rpm/x86_64/LibreOffice_${version}_Linux_x86-64_rpm.tar.gz)
|
||||
|
||||
|
||||
build() {
|
||||
@ -20,27 +20,27 @@ build() {
|
||||
done
|
||||
|
||||
bsdtar -p -o -C $workd -xf \
|
||||
$name${version%.*}-freedesktop-menus-${version%.*}*.noarch.rpm
|
||||
libreoffice${version%.*}-freedesktop-menus-${version%.*}*.noarch.rpm
|
||||
|
||||
cd $workd
|
||||
mkdir -p $PKG/usr/lib/$name
|
||||
mv opt/$name*/* $PKG/usr/lib/$name
|
||||
mkdir -p $PKG/usr/lib/libreoffice
|
||||
mv opt/libreoffice*/* $PKG/usr/lib/libreoffice
|
||||
|
||||
cd $PKG/usr/lib/$name
|
||||
cd $PKG/usr/lib/libreoffice
|
||||
ln -sf basis${version%.*} basis-link
|
||||
|
||||
mkdir -p $PKG/usr/bin
|
||||
local programs=(sbase scalc sdraw simpress smath soffice swriter)
|
||||
for program in ${programs[@]}; do
|
||||
ln -sf /usr/lib/$name/program/$program $PKG/usr/bin/$program
|
||||
ln -sf /usr/lib/libreoffice/program/$program $PKG/usr/bin/$program
|
||||
done
|
||||
|
||||
mkdir -p $PKG/usr/share/applications
|
||||
cd $PKG/usr/lib/$name/share/xdg/
|
||||
cd $PKG/usr/lib/libreoffice/share/xdg/
|
||||
|
||||
for desktop in *.desktop; do
|
||||
sed -i '/^Exec=/s/libreoffice[^ ]*/soffice/' $desktop
|
||||
ln -sf /usr/lib/$name/share/xdg/$desktop $PKG/usr/share/applications/$desktop
|
||||
ln -sf /usr/lib/libreoffice/share/xdg/$desktop $PKG/usr/share/applications/$desktop
|
||||
done
|
||||
|
||||
mv $workd/usr/share/{mime,icons} $PKG/usr/share
|
Loading…
x
Reference in New Issue
Block a user