diff options
author | Niklas Nille Åkerström <Nille dot kungen[AT]gmail dot com> | 2010-05-13 00:27:46 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:27:46 +0200 |
commit | 340d099eb84e1792b3690d654303e479ac213c3d (patch) | |
tree | a06381b5ef650949642078f35dfb9a5f1f614c8e /graphics/digikam/digikam.SlackBuild | |
parent | c694de2aa113051d2b10fb106d2d4ee7bda77e61 (diff) |
graphics/digikam: Updated for version 1.0.0
Diffstat (limited to 'graphics/digikam/digikam.SlackBuild')
-rw-r--r-- | graphics/digikam/digikam.SlackBuild | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/graphics/digikam/digikam.SlackBuild b/graphics/digikam/digikam.SlackBuild index ae5ed2c22f54..88961ea04b99 100644 --- a/graphics/digikam/digikam.SlackBuild +++ b/graphics/digikam/digikam.SlackBuild @@ -21,9 +21,10 @@ # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Modified by Niklas 'Nille' Åkerström for slackware64 and to use cmake. PRGNAM=digikam -VERSION=${VERSION:-0.9.5} +VERSION=${VERSION:-1.0.0} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -56,28 +57,37 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -KDEPREF=$(kde-config --prefix) +KDEPREF=kde4-config -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=$KDEPREF \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=$KDEPREF/man \ - --without-included-sqlite3 \ - --build=$ARCH-slackware-linux +mkdir -p build +cd build +cmake ..\ + -DCMAKE_C_FLAGS:STRING="${SLKCFLAGS}" \ + -DCMAKE_CXX_FLAGS:STRING="${SLKCFLAGS}" \ + -DCMAKE_INSTALL_PREFIX=$($KDEPREF --prefix) \ + -DLIB_SUFFIX=/usr/lib$($KDEPREF --libsuffix) \ + -DMAN_INSTALL_DIR=/usr/man \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_VERBOSE_MAKEFILE:BOOL="TRUE" make -make install-strip DESTDIR=$PKG +make install DESTDIR=$PKG -( cd $PKG/$KDEPREF/man +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true +) + +( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done ) +cd .. mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS ChangeLog COPYING HACKING INSTALL NEWS README RELEASE.rev TODO \ +cp -a AUTHORS ChangeLog COPYING* DESIGN HACKING INSTALL NEWS README tips TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -88,4 +98,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |