wok-undigest view ede/receipt @ rev 1129
glibc: rm extra, -mtune=i686
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Jul 23 17:05:47 2014 +0000 (2014-07-23) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ede"
4 VERSION="2.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Light Window Manager using FLTK toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://equinox-project.org/"
11 WGET_URL="$SF_MIRROR/project/ede/ede/$VERSION/$TARBALL"
13 DEPENDS="fltk edelib startup-notification"
14 BUILD_DEPENDS="ftjam fltk-dev edelib-dev startup-notification-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure \
20 --sysconfdir=/etc \
21 $CONFIGURE_ARGS &&
22 # http://sourceforge.net/projects/ede/forums/forum/249616/topic/5288645
23 sed -i '15i unset XDG_{DATA,CONFIG,CACHE,MENUS}_{HOME,DIRS,PREFIX}' \
24 data/startede &&
25 jam && jam install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/bin $fs/usr/share
32 cp -a $install/etc $fs
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/share/dbus-1 $fs/usr/share
35 cp -a $install/usr/share/desktop-* $fs/usr/share
36 cp -a $install/usr/share/ede $fs/usr/share
37 cp -a $install/usr/share/icons $fs/usr/share
38 cp -a $install/usr/share/pekwm $fs/usr/share
39 cp -a $install/usr/share/xsessions $fs/usr/share
40 }
42 post_install()
43 {
44 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
45 # Adding WM to SLIM available sessions.
46 if ! echo "$res" | grep -q startede; then
47 echo -n "Adding $PACKAGE to /etc/slim.conf..."
48 sed -i "s/^sessions.*/sessions ${res},startede/" $root/etc/slim.conf
49 status
50 fi
51 }
53 post_remove()
54 {
55 # Remove WM from SLIM available sessions.
56 if grep -q startede $root/etc/slim.conf; then
57 sed -i s/,startede// $root/etc/slim.conf
58 fi
59 }