recipes: xfce: moved to ../testing
[dragora.git] / testing / recipes / xfce / xfce4-notifyd / recipe
blob742d839b3a992b640419ff347c7f103d95401ee1
1 # Build recipe for xfce4-notifyd.
3 # Copyright (C) 2018-2019 Matias Fonzo, <selk@dragora.org>.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 #    http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 program=xfce4-notifyd
18 version=0.4.4
19 release=1
21 # Set 'outdir' for a nice and well-organized output directory
22 outdir="${outdir}/${arch}/xfce"
24 tarname=${program}-${version}.tar.bz2
26 # Remote source(s)
27 fetch="http://archive.xfce.org/src/apps/xfce4-notifyd/${version%.*}/$tarname"
29 description="
30 Xfce4 notification daemon.
32 The Xfce Notify Daemon (or "xfce4-notifyd") is a small program that
33 implements the "server-side" portion of the Freedesktop desktop
34 notifications specification. Applications that wish to pop up a
35 notification bubble in a standard way can implicitly make use of
36 xfce4-notifyd to do so by sending standard messages over D-Bus using
37 the org.freedesktop.Notifications interface.
39 Apart from the notification server a panel plugin is included which
40 shows recent notifications in a dropdown menu in the Xfce Panel.
43 homepage=http://xfce.org
44 license=GPLv2+
46 # Source documentation
47 docs="AUTHORS COPYING ChangeLog NEWS README TODO"
48 docsdir="${docdir}/${program}-${version}"
50 build()
52     set -e
54     unpack "${tardir}/$tarname"
55     
56     cd "$srcdir"
58     # Set sane permissions
59     chmod -R u+w,go-w,a+rX-s .
60     
61     ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
62     $configure_args \
63     --libdir=/usr/lib${libSuffix} \
64     --mandir=$mandir \
65     --enable-static=no \
66     --enable-shared=yes \
67     --enable-debug=no \
68     --enable-dbus-start-daemon \
69     --with-x \
70     --build="$(cc -dumpmachine)"
71     
72     make -j${jobs} V=1
73     make -j${jobs} DESTDIR="$destdir" install-strip
75     # WTF?.. No option to disable systemd .service
76     rm -rf "${destdir}/usr/lib/systemd"
77     rmdir "${destdir}/usr/lib" || true
79     lzip -9 "${destdir}/${mandir}"/man?/*.?
80     
81     # Copy documentation
82     mkdir -p "${destdir}${docsdir}"
83     cp -p $docs "${destdir}${docsdir}"/