1. VectorLinux Core
  2. vabs

Commits

M0E-lnx  committed 82c6c04

ndesk-dbus add LINK and build

  • Participants
  • Parent commits e0bf94c
  • Branches veclinux-7.1

Comments (0)

Files changed (1)

File var/vabs/ndesk-dbus/src/ndesk-dbus.SlackBuild

View file
 VERSION=${VERSION:-"0.6.0"}      #Enter package Version!
 VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
 VL_PACKAGER=${VL_PACKAGER:-"hata_ph"}   #Enter your Name!
-LINK=${LINK:-""}  #Enter URL for package here!
+LINK=${LINK:-"http://www.ndesk.org/archive/dbus-sharp/${NAME}-${VERSION}.tar.gz"}  #Enter URL for package here!
 
 
 #SYSTEM VARIABLES
 LDFLAG_OPTIONS=${LDFLAG_OPTIONS:-""}
 ADDRB=${ADDRB:-"mono >= 2.6.4"} #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="mono"
+NUMJOBS=${NUMJOBS:-"-j6"}
 #----------------------------------------------------------------------------
 
+if [ "$NORUN" != 1 ]; then
 
 #SETUP PACKAGING ENVIRONMENT
 #--------------------------------------------
 elif [ "$ARCH" = "x86_64" ]; then
   SLKCFLAGS="-O2 -fpic"
   CONFIGURE_TRIPLET="x86_64-vlocity-linux"
-  LIBDIRSUFFIX="64"
+  LIBDIRSUFFIX="" # No suffix because the .pc files end up in the wrong place
 elif [ "$ARCH" = "powerpc" ]; then
   SLKCFLAGS="-O2"
   CONFIGURE_TRIPLET="powerpc-vlocity-linux"
 echo "Configuring source..."
 ./configure --prefix=/usr \
   --infodir=/usr/info \
+  --libdir=/usr/lib${LIBDIRSUFFIX} \
   --sysconfdir=/etc \
   --localstatedir=/var \
   --mandir=/usr/man \
   --build=$CONFIGURE_TRIPLET \
   $CONFIG_OPTIONS || exit 1
 
-make || exit 1
+make $NUMJOBS || exit 1
 
 make install DESTDIR=$PKG || exit
 
 
 #######################################################################
 #Miscellenious tweaks and things outside a normal ./configure go here #
+if [ "$ARCH" = "x86_64" ]; then
+	mkdir -p $PKG/usr/lib64
+	mv $PKG/usr/lib/pkgconfig $PKG/usr/lib64
+fi
 #######################################################################
 
 
 #--------------------------------------------------------------
 
 # vim: set tabstop=4 shiftwidth=4 foldmethod=marker : ##
+fi