|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2010 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2010,2012 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -29,9 +29,9 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-xournal} |
|
|
|
|
VERSION=${VERSION:-0.4.5.cvs} |
|
|
|
|
VERSION=${VERSION:-0.4.7} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
WGET=${WGET:-http://xournal.cvs.sourceforge.net/viewvc/xournal/xournal/?view=tar} |
|
|
|
|
WGET=${WGET:-http://downloads.sourceforge.net/xournal/$ARCHIVE} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-xournal} |
|
|
|
@ -86,16 +86,13 @@ tar xf $CWD/$ARCHIVE
|
|
|
|
|
cd $NAME |
|
|
|
|
CFLAGS=$CPUOPT \ |
|
|
|
|
CXXFLAGS=$CPUOPT \ |
|
|
|
|
./autogen.sh \ |
|
|
|
|
./configure \ |
|
|
|
|
--prefix=/usr |
|
|
|
|
make -j $JOBS |
|
|
|
|
make install-strip DESTDIR=$PKG |
|
|
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
|
mkdir -p $PKG/usr/doc |
|
|
|
|
mv $PKG/usr/share/xournal/html-doc $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
rm $PKG/usr/doc/$NAMEPKG-$VERSION/pixmaps |
|
|
|
|
ln -s /usr/share/xournal/pixmaps $PKG/usr/doc/$NAMEPKG-$VERSION/pixmaps |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAME |
|
|
|
|
install -m 644 AUTHORS COPYING ChangeLog NEWS README \ |
|
|
|
|
$PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
|
|
|
|
|