aboutsummaryrefslogtreecommitdiff
path: root/app/office
diff options
context:
space:
mode:
authorrudson <rudson@18ef50b8-d735-4ccd-97c1-689132df3dd9>2007-11-06 00:05:48 +0000
committerrudson <rudson@18ef50b8-d735-4ccd-97c1-689132df3dd9>2007-11-06 00:05:48 +0000
commit4446b3d60096b82fab75330065cb3cd36597ac49 (patch)
treeb2b9b5057e854764227c22da73313e785c82c5ee /app/office
parent1dc919d4669938b1776e7748f8bba95e01f9c413 (diff)
downloadmkbuilds-4446b3d60096b82fab75330065cb3cd36597ac49.tar.gz
mkbuilds-4446b3d60096b82fab75330065cb3cd36597ac49.tar.bz2
Adicionando vários mkbuilds...
git-svn-id: svn+slack://slack.fluxo.info/var/svn/mkbuilds@19 18ef50b8-d735-4ccd-97c1-689132df3dd9
Diffstat (limited to 'app/office')
-rw-r--r--app/office/broffice/broffice.mkbuild191
1 files changed, 191 insertions, 0 deletions
diff --git a/app/office/broffice/broffice.mkbuild b/app/office/broffice/broffice.mkbuild
new file mode 100644
index 0000000..89114a6
--- /dev/null
+++ b/app/office/broffice/broffice.mkbuild
@@ -0,0 +1,191 @@
+#--------------------
+# Personal variables
+#--------------------
+# Author name
+[[SLACKBUILD AUTHOR]]="Rudson R. Alves"
+
+# Initials author name
+[[SLACKBUILD AUTHOR INITIALS]]="rra"
+
+#------------------------
+# Construction Variables
+#------------------------
+#
+# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... )
+[[DOWNLOAD FOLDER URL]]="http://linorg.usp.br/BrOffice.org/stable/2.3.0/"
+
+# Source base name. if different from package name. Null ("") to default value.
+# Auto-set, get SRC_NAME from URL: http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[SOURCE NAME]]="BrOo"
+
+# Package name. Null ("") to auto-set
+# Auto-set, get PKG_NAME from URL downcase(SRC_NAME): http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[PACKAGE NAME]]="broffice"
+
+#
+# Source Name construction string
+# Default value is: $SRC_NAME-$VERSION.tar.$EXTENSION
+[[SOURCE NAME CONSTRUCTION STRING]]="${SRC_NAME}_${VERSION}_LinuxIntel_install_pt-BR_rpm.tar.$EXTENSION"
+
+#
+# Package version. Null ("") to auto-set.
+# Auto-set, get VERSION from URL: http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[VERSION]]="2.3.0"
+
+#
+# Package extension. Null ("") to auto-set
+# Auto-set, get EXTENSION from URL: http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[EXTENSION]]="gz"
+
+#
+# Dependency list input
+# Enter string: "dependency_1 [condiction_1] [versio_1]: dependency_2 [condiction_2] [versio_2]"
+# Example:
+[[SLACK REQUIRED]]=""
+
+#
+# Decompress program
+# gz, tgz, bz2, set null ("") to auto-set
+# Auto-set, get DECOMPRESSOR from URL EXTENSION: http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[DECOMPRESSOR]]=""
+
+#
+# Decompress check flag
+# gz, tgz, bz2, set null ("") to auto-set
+[[DECOMPRESSOR TEST FLAG]]=""
+
+#
+# Documentation files. Null ("") to auto-set commom doc-files:
+# NEWS TODO README AUTHORS INSTALL ChangeLog MAINTAINERS COPYING readme.*
+[[DOCUMENTATION FILES]]=""
+
+#
+# ./configure options
+[[OTHER CONFIGURE ARGS]]=""
+
+#
+# PREFIX. Default /usr
+[[PREFIX]]="/usr/share/broffice.org2.3"
+
+#
+# Number of jobs
+[[NUMBER OF JOBS]]=""
+
+#---------------------
+# Others changes
+#---------------------
+#[[PATCH FILES]]=""
+#[[MD5SUM CODE]]=""
+#[[MD5SUM EXTENSION]]=""
+#[[SIGNING KEY]]=""
+#[[SIGNING KEY URL]]=""
+#[[PATCH FILES]]=""
+
+# SlackBuild model
+[[SLACKBUILD MODEL]]="generic.mkSlackBuild"
+
+# SlackBuild PATH in Slack.Sarava tree
+#[[SLACKBUILD PATH]]="others/unclassified/broffice"
+[[SLACKBUILD PATH]]="app/office/broffice"
+
+#---------------------
+# SlackBuild Sections
+#---------------------
+# Default enable sections:
+# head, set_variables, slkflags, start_structure, untar_source,
+# make_package, install_package, build_package
+# Warning: don't remove '#>>' and "#<<" tags.
+#>> Start SlackBuild Sections:
+ on: head
+ on: slackbuildrc
+ on: set_variables
+off: slkflags
+ on: error_codes
+ on: start_structure
+ on: download_source
+off: md5sum_download_and_check_0
+off: md5sum_download_and_check_1
+off: gpg_signature_check
+ on: untar_source
+off: path_source
+off: configure
+ on: make_package
+off: install_package
+ on: strip_binaries
+off: compress_manpages
+off: compress_info_files
+off: install_documentation
+ on: slackdesc
+off: postinstall_script
+ on: build_package
+ on: clean_builds
+#<< End SlackBuild Sections
+
+#------------------
+# Sections changes
+#------------------
+#>slackdesc
+broffice: BrOffice.org by Slack.Sarava
+broffice:
+broffice: Pacote do BrOffice construído a partir do pacote rpm pelo
+broffice: broffice.Slackbuild.
+broffice:
+broffice: O BrOffice.org/OpenOffice.org é uma suíte de escritório feito
+broffice: inicialmente pela Star Division, e atualmente pela Sun (com alguma
+broffice: participação da 'comunidade'), e é composto por: Writer - editor;
+broffice: Calc - planilha; Impress - apresentações; Draw - desenhos vetoriais;
+broffice: Math - Editor de equações; Base - Banco de dados.
+broffice: http://www.openoffice.org.br
+#<slackdesc
+
+
+# Change in untar_source ----------------------------------
+#>untar_source
+# Untar
+mkdir -p $PKG_SRC
+cd $PKG_SRC
+tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR
+
+mv $PKG_SRC/OOG680_m5_native_packed-1_pt-BR.9221/* $PKG_SRC/
+rm -rf $PKG_SRC/OOG680_m5_native_packed-1_pt-BR.9221
+cd $PKG_SRC/RPMS
+#<untar_source
+
+
+# Change in md5sum_check ----------------------------------
+#>make_package
+# Convert packges and install
+for i in *.rpm; do
+ echo -e "\nconvert $i"
+ rpm2tgz $i || exit $ERROR_TAR
+ tar xvf ${i//.rpm/.tgz} -C $PKG || exit $ERROR_TAR
+done
+rm *.rpm 2>/dev/null
+
+# Convert links to KDE
+cd desktop-integration
+echo -e "\ninstall broffice.org-slackware-menus-2.3*.rpm"
+tar xvf broffice.org-slackware-menus-2.3*.tgz -C $PKG || exit $ERROR_TAR
+rm *.rpm *.deb 2>/dev/null
+cd ..
+
+# Change opt directory
+#mkdir $PKG/usr
+mv $PKG/opt/broffice.org2.3 $PKG/usr/share/
+
+mv $PKG/opt/kde/share/* $PKG/usr/share/
+rm -rf $PKG/opt
+
+# Change doinstall install directory
+sed 's/\/opt\/broffice.org2.3/\/usr\/share\/broffice.org2.3\//' $PKG/install/doinst.sh > $PKG/install/doinst.sh.new
+mv $PKG/install/doinst.sh.new $PKG/install/doinst.sh
+#<make_package
+
+
+# Change in install_documentation--------------------------
+#>install_documentation
+# Install Documentation
+mkdir -p "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR
+mv $PKG_SRC/licenses/* $PKG/usr/doc/$PKG_NAME-$PKG_VERSION/
+mv $PKG_SRC/readmes/* $PKG/usr/doc/$PKG_NAME-$PKG_VERSION/
+#<install_documentation