X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=packaging%2FSlackware%2FSlackBuild.in;h=d49b0816fe743ad7570483982d0011d51c084d0c;hp=0853b6abd5f1bf833919d2eccbadd96c23166d40;hb=a2dfc99dc499ea8600bf5178f8122125d7d7d557;hpb=4ee1266711b695852ec88f06784fd84400cd70bb diff --git a/packaging/Slackware/SlackBuild.in b/packaging/Slackware/SlackBuild.in index 0853b6a..d49b081 100644 --- a/packaging/Slackware/SlackBuild.in +++ b/packaging/Slackware/SlackBuild.in @@ -5,14 +5,11 @@ # Written by Pawe³ Kot # +ARCH=@ARCH@ PN=@PACKAGE@ PV=@VERSION@ -ARCH="i386" -BUILD=1 - -DOCS1="Docs/*" -DOCS2="Docs/protocol Docs/sample" +DOCS="COPYING ChangeLog VERSION Docs/CREDITS Docs/DataCalls-QuickStart Docs/README*" CONF="Docs/sample/gnokiirc" CWD=`pwd` @@ -37,26 +34,24 @@ tar xzvf $CWD/$PN-$PV.tar.gz cd $PN-$PV # Configure and make package -./configure --prefix=/usr --with-xgnokiidir=/usr/X11R6 i386-slackware-linux -make -make prefix=$PKG/usr xgnokii_libdir=$PKG/usr/X11R6 install +./configure --prefix=/usr --with-x --enable-nls $ARCH-slackware-linux || exit 1 +make || exit 1 +make prefix=$PKG/usr install || exit 1 # Copy the docs mkdir -p $PKG/usr/doc/$PN-$PV -cp $DOCS1 $PKG/usr/doc/$PN-$PV -cp -r $DOCS2 $PKG/usr/doc/$PN-$PV +cp -a $DOCS $PKG/usr/doc/$PN-$PV +chmod 644 $PKG/usr/doc/$PN-$PV # and the configuration mkdir -p $PKG/etc -sed "s|/usr/local/sbin|/usr/sbin|" < $CONF > $PKG/etc/gnokiirc.new +sed "s|/usr/local/sbin|/usr/sbin|" < $CONF > $PKG/etc/gnokiirc # Now, add gnokii group, set the permissions GROUPADD=`which groupadd` cd $PKG mkdir install cat > install/doinst.sh </dev/null 2>&1 chown root.gnokii /usr/bin/gnokii chmod 750 /usr/bin/gnokii @@ -64,17 +59,11 @@ chown root.gnokii /usr/sbin/gnokiid chmod 750 /usr/sbin/gnokiid chown root.gnokii /usr/sbin/mgnokiidev chmod 4750 /usr/sbin/mgnokiidev - -if [ -f /etc/gnokiirc ]; then - rm -f /etc/gnokiirc.new -else - mv /etc/gnokiirc.new /etc/gnokiirc -fi EOF # and build the package answering "yes" twice echo "y -y" | makepkg $TMP/$PN-$PV-$ARCH-$BUILD.tgz +y" | makepkg $TMP/$PN.tgz # Cleanup rm -rf $TMP/$PN-$PV