Commits

Moises Henriquez  committed 1ba9a10

Added scons template

  • Participants
  • Parent commits c22950c

Comments (0)

Files changed (2)

File templates/configure.scons

+#CONFIGURE & MAKE
+#----------------------------------------------------------------------
+# If you are building a KDE-related app, then change the following
+# arguments in the script below:
+# --prefix=$(kde-config -prefix) \
+# --sysconfdir=/etc/kde \
+#
+# Making these changes will ensure that your package will build in the
+# correct path and that it will work seamlessly within the KDE environment.
+#
+#-----------------------------------------------------------------------
+
+echo "Configuring source..."
+[%- UNLESS noconfig %]
+[%- SET configure = 
+'scons \
+PREFIX=/usr \
+LIBDIR=/usr/lib${LIBDIRSUFFIX} || exit 1' %]
+[%- END %]
+[% configure %]
+
+scons \
+PREFIX=/usr \
+LIBDIR=/usr/lib${LIBDIRSUFFIX} \
+DESTDIR=$PKG install || exit 1
+

File templates/pkgsetup

 echo "Extracting source..."
 tar xvf $CWD/$NAME-$VERSION.tar.* || exit 1
 #this moves whatever was extracted to the std dirname we are expecting
-mv * $NAME-$VERSION &> /dev/null
+mv * $NAME-$VERSION &> /dev/null 2>&1
 #-----------------------------------------------------