#------------------
#>configure
-
# get boost version
boost="`basename $(ls /var/log/packages/boost-[0-9]* 2> /dev/null)`"
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS --with-boost-include-dir=/usr/include/boost-$boost_version || exit $ERROR_CONF
+ --prefix="$PREFIX" --libdir="$LIBDIR" --sysconfdir=/etc \
+ --with-boost-include-dir=/usr/include/boost-$boost_version $CONF_OPTIONS || exit $ERROR_CONF
</configure>
#<configure
gnuradio:
gnuradio:
#<slackdesc
+
+#>build_package
+cd "$PKG"
+
+# config files
+echo '( chroot . /sbin/ldconfig )' > install/doinst.sh
+for conf in gnuradio-core gr-audio-alsa gr-audio-jack gr-audio-oss; do
+ mv etc/gnuradio/conf.d/$conf.conf etc/gnuradio/conf.d/$conf.conf.new
+ echo "( if [ ! -f "etc/gnuradio/conf.d/$conf.conf" ]; then mv etc/gnuradio/conf.d/$conf.conf.new etc/gnuradio/conf.d/$conf.conf ; fi )" >> install/doinst.sh
+done
+
+# Build the package
+makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
+#<build_package