From e601249b0991a0068c7125ad988894a31128f5af Mon Sep 17 00:00:00 2001 From: milisman Date: Wed, 8 Jun 2016 15:37:19 +0000 Subject: [PATCH] libreofis-bin.paketlendi --- talimatname/genel/libreoffice-bin/talimat | 28 +++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/talimatname/genel/libreoffice-bin/talimat b/talimatname/genel/libreoffice-bin/talimat index 3a96bdf6a..8c3fb13f6 100644 --- a/talimatname/genel/libreoffice-bin/talimat +++ b/talimatname/genel/libreoffice-bin/talimat @@ -4,7 +4,7 @@ # Depends on: cups xorg-libxaw xorg-libxcursor xorg-libxft xorg-libxinerama xorg-libxi xorg-libxrandr dbus-glib krb5 name=libreoffice-bin -_name=libreoffice +namep=libreoffice version=5.1.3 release=1 source=(http://tdf.c3sl.ufpr.br/libreoffice/stable/5.1.3/rpm/x86_64/LibreOffice_5.1.3_Linux_x86-64_rpm.tar.gz) @@ -20,38 +20,38 @@ build() { done bsdtar -p -o -C $workd -xf \ - $_name${version%.*}-freedesktop-menus-${version%.*}*.noarch.rpm + $namep${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/$namep + mv opt/$namep*/* $PKG/usr/lib/$namep - cd $PKG/usr/lib/$_name + cd $PKG/usr/lib/$namep ln -sf basis${version%.*} basis-link mkdir -p $PKG/usr/bin local programs=(sbase scalc sdraw simpress smath soffice spadmin swriter) for program in ${programs[@]}; do - ln -sf /usr/lib/$_name/program/$program $PKG/usr/bin/$program + ln -sf /usr/lib/$namep/program/$program $PKG/usr/bin/$program done mkdir -p $PKG/usr/share/applications - cd $PKG/usr/lib/$_name/share/xdg/ + cd $PKG/usr/lib/$namep/share/xdg/ for desktop in *.desktop; do sed -i '/^Exec=/s/libreoffice[^ ]*/soffice/' $desktop - ln -sf /usr/lib/$xname/share/xdg/$desktop $PKG/usr/share/applications/$desktop + ln -sf /usr/lib/$namep/share/xdg/$desktop $PKG/usr/share/applications/$desktop done mv $workd/usr/share/{mime,icons} $PKG/usr/share find $PKG \(\ - -i_name '*readme*' -o \ - -i_name '*changelog*' -o \ - -_name '*TODO*' -o \ - -i_name '*news*' -o \ - -i_name '*license*' -o \ - -i_name '*credits*' \ + -inamep '*readme*' -o \ + -inamep '*changelog*' -o \ + -namep '*TODO*' -o \ + -inamep '*news*' -o \ + -inamep '*license*' -o \ + -inamep '*credits*' \ \) -exec rm -rf '{}' \; || true }