Commits

M0E-lnx  committed 4132862

lgi fix SlackBuild for 64-bit compliance.

  • Participants
  • Parent commits 5d53c1b

Comments (0)

Files changed (1)

File var/vabs/lgi/src/lgi.SlackBuild

 VERSION=${VERSION:-"0.7.1"}      #Enter package Version!
 VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
 VL_PACKAGER=${VL_PACKAGER:-"rbistolfi"}   #Enter your Name!
-LINK=${LINK:-"https://github.com/pavouk/lgi.git"}  #Enter URL for package here!
+#LINK=${LINK:-"https://github.com/pavouk/lgi.git"}  #Enter URL for package here!
+LINK=${LINK:-"https://github.com/pavouk/lgi/archive/$VERSION.tar.gz"}
 
 
 #SYSTEM VARIABLES
 
 #GET THE SOURCE
 #--------------------------------------------
-if [ ! -f $CWD/$NAME-$VERSION.tar.gz ]
-then
-        git clone $LINK $NAME-$VERSION
-        cd $NAME-$VERSION
-        git checkout $VERSION
-        rm -fr .git
-        cd -
-        tar cvf $CWD/$NAME-$VERSION.tar.gz $NAME-$VERSION
-	rm -fr $NAME-$VERSION
-fi
+for SRC in $(echo $LINK); do
+	wget -c --no-check-certificate $SRC
+done
+mv $(basename $LINK) $NAME-$VERSION.tar.gz
 #--------------------------------------------
 
 
 #
 #-----------------------------------------------------------------------
 
+# Fix this stuff with sed
+sed -i \
+	-e "s|/usr/local|/usr|" \
+	-e "s|/lib/lua/|/lib$LIBDIRSUFFIX/lua/|" \
+	lgi/Makefile || exit 1
 
-make || exit 1
+make PREFIX=/usr || exit 1
 
-make install PREFIX=/usr DESTDIR=$PKG || exit 1
+make install DESTDIR=$PKG || exit 1
 
 
 #######################################################################