aboutsummaryrefslogtreecommitdiff
path: root/office/gnucash/gnucash.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/gnucash/gnucash.SlackBuild')
-rw-r--r--office/gnucash/gnucash.SlackBuild66
1 files changed, 33 insertions, 33 deletions
diff --git a/office/gnucash/gnucash.SlackBuild b/office/gnucash/gnucash.SlackBuild
index 1745e45414843..71687dc9d30df 100644
--- a/office/gnucash/gnucash.SlackBuild
+++ b/office/gnucash/gnucash.SlackBuild
@@ -24,8 +24,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=gnucash
-VERSION=${VERSION:-2.6.21}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-3.2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -69,46 +69,46 @@ if [ -e /usr/bin/gnucash ]; then
fi
if [ "$DBI" = "yes" ]; then
- DBIARGS="--enable-dbi --with-dbi-dbd-dir=/usr/lib${LIBDIRSUFFIX}/dbd/ "
+ DBIARGS="-DWITH_SQL=ON -DGNC_DBD_DIR=/usr/lib${LIBDIRSUFFIX}/dbd/ "
echo " building with dbi enabled"
sleep 1
else
- DBIARGS="--disable-dbi "
+ DBIARGS="-DWITH_SQL=OFF "
fi
if [ "$OFX" = "yes" ]; then
- OFXBANKING="--enable-ofx"
+ OFXBANKING="DWITH_OFX=ON"
echo " building with OFX enabled"
sleep 1
else
- OFXBANKING="--disable-ofx"
+ OFXBANKING="-DWITH_OFX=OFF"
fi
if [ "$AQ" = "yes" ]; then
- AQBANKING="--enable-aqbanking"
+ AQBANKING="-DWITH_AQBANKING=ON"
echo " building with aqbanking enabled"
sleep 1
else
- AQBANKING="--disable-aqbanking"
+ AQBANKING="-DWITH_AQBANKING=OFF"
fi
-if [ "$WITHPYTHON" = "yes" ]; then
- W_PYTHON="--enable-python"
+if [ "${WITHPYTHON}" = "yes" ]; then
+ W_PYTHON="-DWITH_PYTHON=ON"
echo " building with Python bindings enabled"
sleep 1
else
- W_PYTHON="--disable-python"
+ W_PYTHON="-DWITH_PYTHON=OFF"
fi
set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
-
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -116,25 +116,24 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --infodir=/usr/info \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- $W_PYTHON \
- $OFXBANKING \
- $AQBANKING \
- --disable-schemas-compile \
- $DBIARGS \
- --build=$ARCH-slackware-linux
-
-# --enable-register2 \ still not ready for prime time
-
+ mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIBDIR=/usr/lib${LIBDIRSUFFIX} \
+ -DSYSCONFDIR=/etc \
+ -DLOCALSTATEDIR=/var \
+ -DDOCDIR=/usr/doc/$PRGNAM-$VERSION \
+ -DINFODIR=/usr/info \
+ -DCOMPILE_GSCHEMAS=OFF \
+ -DMANDIR=/usr/man \
+ $DBIARGS \
+ $W_PYTHON \
+ $OFXBANKING \
+ $AQBANKING \
+ -DCMAKE_BUILD_TYPE=release ..
make
make -j1 install DESTDIR=$PKG docdir=/usr/doc/$PRGNAM-$VERSION
@@ -142,16 +141,16 @@ make -j1 install DESTDIR=$PKG docdir=/usr/doc/$PRGNAM-$VERSION
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+mv $PKG/usr/share/man/ $PKG/usr/
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Don't clobber these
mv $PKG/etc/gnucash/environment $PKG/etc/gnucash/environment.new
-mv $PKG/etc/gnucash/config $PKG/etc/gnucash/config.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog DOCUMENTERS HACKING LICENSE NEWS README* TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
+ $PKG/usr/doc/$PRGNAM-$VERSION || true
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
@@ -160,3 +159,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+