Commits

stretchedthin committed 324799b

gammu

Comments (0)

Files changed (1)

var/vabs/gammu/src/gammu.SlackBuild

 # AUTHORS = 
 
 NAME="gammu"            #Enter package Name!
-VERSION=${VERSION:-"1.29.0"}      #Enter package Version!
+VERSION=${VERSION:-"1.31.0"}      #Enter package Version!
 VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
 VL_PACKAGER=${VL_PACKAGER:-"stretchedthin"}   #Enter your Name!
-LINK=${LINK:-""}  #Enter URL for package here!
+LINK=${LINK:-"http://dl.cihar.com/gammu/releases/gammu-1.31.0.tar.xz"}  #Enter URL for package here!
 
 
 #SYSTEM VARIABLES
 LDFLAG_OPTIONS=${LDFLAG_OPTIONS:-""}
 ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here
 EXRB=${EXRB:-""} #Add deps that need to be excluded from the slack-required file here
+MAKEDEPENDS=${MAKEDEPENDS:-"postgresql bluez curl glib2"}
 #----------------------------------------------------------------------------
 
 
 
 echo "Configuring source..."
 
-#mkdir -p build
-#cd build || exit 1
-
-# Build
-cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-	-DBUILD_SHARED_LIBS:BOOL=ON \
-	-DLIBRARY_OUTPUT_PATH:PATH=/usr/lib${LIBDIRSUFFIX} \
-	-DSYSCONFDIR:PATH=/etc \
-	$CONFIG_OPTIONS || exit 1
-
-make VERBOSE=1 || exit 1
-make install DESTDIR=$PKG || exit 1
+mkdir -p build
+cd build
+  cmake \
+    -DCMAKE_C_FLAGS="$SLKCFLAGS" \
+    -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DINSTALL_MAN_DIR=man \
+    -DINSTALL_DOC_DIR=doc/$PRGNAM-$VERSION \
+    -DBUILD_SHARED_LIBS=ON \
+    -DLIB_SUFFIX="$LIBDIRSUFFIX" \
+    ..
+  make
+  make install DESTDIR=$PKG
+cd -
 
 
 #######################################################################
 # customary to leave one space after the ':'.
 
 $SHIM|-----handy-ruler------------------------------------------------------|
-$NAME: $NAME ()
-$NAME:
-$NAME: 
-$NAME: 
-$NAME: 
-$NAME: 
-$NAME:
+$NAME: $NAME (Mobile phone management utility)
 $NAME:
+$NAME: Gammu is command line utility and library to work with mobile
+$NAME: phones from many vendors. Support for different models differs,
+$NAME: but basic functions should work with majority of them. Program
+$NAME: can work with contacts, messages (SMS, EMS and MMS), calendar,
+$NAME: todos, filesystem, integrated radio, camera, etc. It also
+$NAME: supports daemon mode to send and receive SMSes.
 $NAME: License: GPL
 $NAME: Authors: 
-$NAME: Website: 
+$NAME: Website: Homepage: http://cihar.com/gammu/
 
 EOF
 fi
 echo "Package Complete"
 #--------------------------------------------------------------
 
-# vim: set tabstop=4 shiftwidth=4 foldmethod=marker : ##
+# vim: set tabstop=4 shiftwidth=4 foldmethod=marker : ##