]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
small changes
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 4 Dec 2007 13:44:08 +0000 (13:44 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 4 Dec 2007 13:44:08 +0000 (13:44 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@469 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh
trunk/mkbuild/generic.mkSlackBuild
trunk/mkbuild/perl.mkSlackBuild
trunk/simplepkg.SlackBuild

index 3a437c89cd8501ff5fecea6f9d5b6ee52f092f21..ec3e6f01f4317ea8898385409ed1308c1a04d83b 100644 (file)
@@ -27,7 +27,7 @@ SIMPLARET="simplaret"
 
 function package_name {
 
-  echo "`basename $1 .tgz`" | sed -e 's/-[^-]*-[^-]*-[^-]*$//'
+  basename $1 .tgz | sed -e 's/-[^-]*-[^-]*-[^-]*$//'
 
 }
 
@@ -49,7 +49,7 @@ function package_arch {
 
   # get ARCH from a package name
   local file pack arch
-  echo `basename $1` | sed -e 's/.*\-\(.*\)\-.*.tgz$/\1/' -e 's/_slamd64$//g' -e 's/_sflack$//g'
+  basename $1 | sed -e 's/.*\-\(.*\)\-.*.tgz$/\1/' -e 's/_slamd64$//g' -e 's/_sflack$//g'
 
 }
 
@@ -57,7 +57,7 @@ function package_build {
 
   # get BUILD from a package name
   local file pack build
-  echo `basename $1` | sed -e 's/.*\-.*\-\(.*\).tgz$/\1/'
+  basename $1 | sed -e 's/.*\-.*\-\(.*\).tgz$/\1/'
 
 }
 
index 4886d6b35030666227c9e7be6592a49a5d91ea73..e655a15e35885093e9b6d8d97e947986d122119b 100644 (file)
@@ -1,7 +1,7 @@
 #################################################################
 ## Generic template for SlackBuilds
 ##
-## Version 0.9.2 - Luis ( luis at riseup d0t net)
+## Version 0.9.3 - Luis ( luis at riseup d0t net)
 ##                 Alves ( rudsonalves at yahoo d0t com d0t br )
 #################################################################
 #!/bin/bash
@@ -272,6 +272,6 @@ makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERRO
 <clean_builds> off
 # Delete source and build directories if requested
 if [ "$CLEANUP" == "yes" ]; then
-  rm -rf "$PKG_SRC" "$PKG" "$PKG_WORK""
+  rm -rf "$PKG_WORK" "$PKG"
 fi
 </clean_builds>
index 245cd010375ba5b77bafc07091468e8e791499c6..d90dacc7db869c3e9030558f3f874bfb5e06a15e 100644 (file)
@@ -1,7 +1,7 @@
 ###################################################
 ## Perl template for SlackBuilds
 ##
-## Based on generic.mkSlackBuild version 0.9.2 by
+## Based on generic.mkSlackBuild version 0.9.3 by
 ## Luis (luis at riseup d0t net) and changed by
 ## Rhatto (rhatto at riseup d0t net)
 ##
@@ -284,6 +284,6 @@ makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERRO
 <clean_builds> off
 # Delete source and build directories if requested
 if [ "$CLEANUP" == "yes" ]; then
-  rm -rf "$PKG_SRC" "$PKG" "$PKG_WORK"
+  rm -rf "$PKG_WORK" "$PKG"
 fi
 </clean_builds>
index 5d058ecc5ae26338ea4889a6e2673ef439bb510d..83ccdf15e8b454b7d7907c988677564922fd6943 100755 (executable)
@@ -17,8 +17,8 @@
 
 PACKAGE="simplepkg"
 PACK_DIR="package-$PACKAGE"
-BUILD=${BUILD:=2rha}
-VERSION="0.6pre11"
+BUILD=${BUILD:=1rha}
+VERSION="0.6pre12"
 ARCH="noarch"
 LIBEXEC="/usr/libexec/$PACKAGE"
 BINDIR="/usr/bin"