~james-w/ubuntu/maverick/gwhere/fix-grammer

« back to all changes in this revision

Viewing changes to slackware/gwhere.SlackBuild

  • Committer: Bazaar Package Importer
  • Author(s): Bart Martens
  • Date: 2007-01-27 16:01:01 UTC
  • mfrom: (2.1.1 feisty)
  • Revision ID: james.westby@ubuntu.com-20070127160101-u673yo4vke03jg26
Tags: 0.2.3.dfsg.1-2
* debian/rules: Convert gwhere.desktop to UTF-8.  Closes: #405137.
* debian/rules: Replace all "extraibles" with "extraíbles" in
  gwhere.desktop.  Closes: #405138.
* debian/copyright: Updated for year 2007.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# Date Last Modified: 2005-05-26 (YYYY-MM-DD)
 
4
# Author: Venelin Georgiev xyzt2@yahoo.com
 
5
 
6
 
 
7
NAME=gwhere
 
8
VERSION=0.2.0
 
9
DEVELOPMENT=
 
10
ARCH=i486
 
11
BUILD=1
 
12
CWD=`pwd`
 
13
TMP=/tmp
 
14
SRC=$TMP
 
15
 
 
16
 
 
17
### must be absolute PATH
 
18
PKGDIR=$TMP/package-$NAME
 
19
### must be only file name without the extention
 
20
if [ "x$DEVELOPMENT" = "x" ]; then
 
21
  PKGNAME=$NAME-$VERSION-$ARCH-$BUILD
 
22
  TARNAME=$NAME-$VERSION
 
23
else
 
24
  PKGNAME=$NAME-$VERSION.$DEVELOPMENT-$ARCH-$BUILD
 
25
  TARNAME=$NAME-$VERSION-$DEVELOPMENT
 
26
fi
 
27
 
 
28
# Prepare the framework and extract the package:
 
29
cd $TMP
 
30
if [ $? -ne 0 ]; then
 
31
  mkdir $TMP
 
32
  if [ $? -ne 0 ]; then
 
33
    echo -e "\n\n\nERROR: Cannot cd to dir \"$TMP\" or CANNOT create it\n"
 
34
    exit 1
 
35
  fi
 
36
fi
 
37
 
 
38
cd $SRC
 
39
if [ $? -ne 0 ]; then
 
40
  mkdir $SRC
 
41
  if [ $? -ne 0 ]; then
 
42
    echo -e "\n\n\nERROR: Cannot cd to dir \"$SRC\" or CANNOT create it\n"
 
43
    exit 1
 
44
  fi
 
45
fi
 
46
 
 
47
echo -ne "INFO:\tCleaning..." 
 
48
cd $TMP
 
49
rm -rf $PKGDIR $PKGNAME.tgz
 
50
cd $SRC
 
51
rm -rf $NAME-$VERSION
 
52
echo done
 
53
 
 
54
tar -jxvpf $CWD/$TARNAME.tar.bz2
 
55
mkdir -p $PKGDIR
 
56
 
 
57
cd $SRC/$NAME-$VERSION
 
58
TEST=/TESTER
 
59
unset TEST 
 
60
./configure \
 
61
 --sysconfdir=$TEST/etc \
 
62
 --prefix=$TEST/usr \
 
63
--without-catgets \
 
64
--without-included-gettext \
 
65
--disable-nls
 
66
 
 
67
make
 
68
make install DESTDIR=$PKGDIR
 
69
 
 
70
#
 
71
# Docs
 
72
#
 
73
mkdir -p $PKGDIR/usr/doc/$NAME-$VERSION
 
74
cp README NEWS TODO INSTALL ChangeLog COPYING BUGS AUTHORS ABOUT-NLS \
 
75
   $PKGDIR/usr/doc/$NAME-$VERSION
 
76
mkdir -p $PKGDIR/opt/kde/share/applnk/Utilities
 
77
cp $CWD/GWhere.desktop $PKGDIR/opt/kde/share/applnk/Utilities
 
78
 
 
79
 
80
  cd $PKGDIR/usr/doc/$NAME-$VERSION; 
 
81
  chown -R 0.0 *;
 
82
  find . -type f -exec chmod 0644 {} \; ;
 
83
  find . -type d -exec chmod 0755 {} \; ;
 
84
)
 
85
 
 
86
#
 
87
# Man Pages
 
88
#
 
89
(
 
90
  cd $PKGDIR/usr/man/man1;
 
91
  gzip -f *
 
92
)
 
93
 
 
94
#
 
95
# Chown to root.bin for Binaries
 
96
#
 
97
(
 
98
  cd $PKGDIR/usr/bin
 
99
  chown -R 0.bin *
 
100
)
 
101
 
 
102
#
 
103
# Finalizing package
 
104
#
 
105
mkdir -p $PKGDIR/install
 
106
cat $CWD/slack-desc > $PKGDIR/install/slack-desc
 
107
 
 
108
cd $PKGDIR
 
109
makepkg -l y -c n /tmp/$PKGNAME.tgz
 
110
 
 
111
# Clean up the extra stuff:
 
112
if [ "$1" = "--cleanup" ]; then
 
113
 rm -rf $SRC/$NAME-$VERSION
 
114
 rm -rf $PKGDIR
 
115
fi