Commits

Anonymous committed 4132862

lgi fix SlackBuild for 64-bit compliance.

Comments (0)

Files changed (1)

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
 
 
 #######################################################################
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.