diff --git a/talimatname/genel/libreoffice/libreoffice.kur-kos b/talimatname/genel/libreoffice-bin/libreoffice-bin.kur-kos similarity index 100% rename from talimatname/genel/libreoffice/libreoffice.kur-kos rename to talimatname/genel/libreoffice-bin/libreoffice-bin.kur-kos diff --git a/talimatname/genel/libreoffice/talimat b/talimatname/genel/libreoffice-bin/talimat similarity index 58% rename from talimatname/genel/libreoffice/talimat rename to talimatname/genel/libreoffice-bin/talimat index 406dadedc..3a96bdf6a 100644 --- a/talimatname/genel/libreoffice/talimat +++ b/talimatname/genel/libreoffice-bin/talimat @@ -1,9 +1,10 @@ -# Description: LibreOffice is a full-featured office suite. It is largely compatible with Microsoft Office and is descended from OpenOffice.org. +# Description: full featured cross platform office suite (binary) # URL: http://www.libreoffice.org # Packager: milisarge # Depends on: cups xorg-libxaw xorg-libxcursor xorg-libxft xorg-libxinerama xorg-libxi xorg-libxrandr dbus-glib krb5 -name=libreoffice +name=libreoffice-bin +_name=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) @@ -19,38 +20,38 @@ build() { done bsdtar -p -o -C $workd -xf \ - $name${version%.*}-freedesktop-menus-${version%.*}*.noarch.rpm + $_name${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/$_name + mv opt/$_name*/* $PKG/usr/lib/$_name - cd $PKG/usr/lib/$name + cd $PKG/usr/lib/$_name 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/$_name/program/$program $PKG/usr/bin/$program done mkdir -p $PKG/usr/share/applications - cd $PKG/usr/lib/$name/share/xdg/ + cd $PKG/usr/lib/$_name/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/$xname/share/xdg/$desktop $PKG/usr/share/applications/$desktop done mv $workd/usr/share/{mime,icons} $PKG/usr/share find $PKG \(\ - -iname '*readme*' -o \ - -iname '*changelog*' -o \ - -name '*TODO*' -o \ - -iname '*news*' -o \ - -iname '*license*' -o \ - -iname '*credits*' \ + -i_name '*readme*' -o \ + -i_name '*changelog*' -o \ + -_name '*TODO*' -o \ + -i_name '*news*' -o \ + -i_name '*license*' -o \ + -i_name '*credits*' \ \) -exec rm -rf '{}' \; || true }