wok view kdelibs/receipt @ rev 24624

updated grep (3.4 -> 3.7)
author Hans-G?nter Theisgen
date Mon Mar 07 16:56:05 2022 +0100 (2022-03-07)
parents ae73fb35f0cf
children bd7510903310
line source
1 # SliTaz package receipt.
3 PACKAGE="kdelibs"
4 VERSION="4.14.3"
5 CATEGORY="x-window"
6 SHORT_DESC="The KDE library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.kde.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="http://download.kde.org/Attic/$VERSION/src/$TARBALL"
14 DEPENDS="phonon libQtCore libQtGui libQtScript giflib libxslt qca \
15 strigi attica dbus polkit-qt openssl udev libdbusmenu-qt enchant mesa librsvg \
16 soprano shared-mime-info"
17 BUILD_DEPENDS="attica-dev automoc4 cmake dbus-dev docbook-xml docbook-xsl
18 enchant-dev giflib-dev libdbusmenu-qt-dev libQtDeclarative
19 librsvg-dev libxslt-dev mesa-dev openssl-dev phonon-dev polkit-qt-dev
20 qca-dev qmake Qt4-dev shared-mime-info-dev soprano-dev strigi-dev
21 udev-dev udisks2-dev udisks2"
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - https://github.com/KDE/kdelibs/tags 2>/dev/null | \
27 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 sed -i '316,317d' kdeui/CMakeLists.txt # duplicate else
35 mkdir build &&
36 cd build &&
37 cmake .. \
38 -DCMAKE_BUILD_TYPE=Release \
39 -DKDE_DISTRIBUTION_TEXT='SliTaz GNU/Linux' \
40 -DCMAKE_INSTALL_PREFIX=/usr \
41 -DSYSCONF_INSTALL_DIR=/etc/kde \
42 -DKDE_DEFAULT_HOME=.config/kde \
43 -DCMAKE_SKIP_RPATH=ON \
44 -DKAUTH_BACKEND=PolkitQt-1 \
45 -DWITH_SOLID_UDISKS2=TRUE &&
46 make -j 1 &&
47 make install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/share
55 cp -a $install/usr/bin $fs/usr
56 cp -a $install/usr/lib $fs/usr
57 strip -s $fs/usr/lib/kde4/libexec/* 2>/dev/null
58 for d in apps config dbus-1 icons kde4 locale mime
59 do
60 cp -a $install/usr/share/$d $fs/usr/share
61 done
62 }