3
# Date Last Modified: 2005-05-26 (YYYY-MM-DD)
4
# Author: Venelin Georgiev xyzt2@yahoo.com
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
24
PKGNAME=$NAME-$VERSION.$DEVELOPMENT-$ARCH-$BUILD
25
TARNAME=$NAME-$VERSION-$DEVELOPMENT
28
# Prepare the framework and extract the package:
33
echo -e "\n\n\nERROR: Cannot cd to dir \"$TMP\" or CANNOT create it\n"
42
echo -e "\n\n\nERROR: Cannot cd to dir \"$SRC\" or CANNOT create it\n"
47
echo -ne "INFO:\tCleaning..."
49
rm -rf $PKGDIR $PKGNAME.tgz
54
tar -jxvpf $CWD/$TARNAME.tar.bz2
57
cd $SRC/$NAME-$VERSION
61
--sysconfdir=$TEST/etc \
64
--without-included-gettext \
68
make install DESTDIR=$PKGDIR
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
80
cd $PKGDIR/usr/doc/$NAME-$VERSION;
82
find . -type f -exec chmod 0644 {} \; ;
83
find . -type d -exec chmod 0755 {} \; ;
90
cd $PKGDIR/usr/man/man1;
95
# Chown to root.bin for Binaries
105
mkdir -p $PKGDIR/install
106
cat $CWD/slack-desc > $PKGDIR/install/slack-desc
109
makepkg -l y -c n /tmp/$PKGNAME.tgz
111
# Clean up the extra stuff:
112
if [ "$1" = "--cleanup" ]; then
113
rm -rf $SRC/$NAME-$VERSION