blob: 6ef8e8a62e67f9dab58c69de05098b4602e02b81 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001DESCRIPTION = "Devilspie2 is a window matching utility, allowing the user to perform scripted actions on windows as they are created"
2HOMEPAGE = "http://www.gusnan.se/devilspie2"
3LICENSE = "GPLv3"
4LIC_FILES_CHKSUM = "file://COPYING;md5=00aefaa50aad75c21367df66102d542c \
5 file://GPL3.txt;md5=d32239bcb673463ab874e80d47fae504"
6
7DEPENDS = "gtk+ glib-2.0 libwnck lua virtual/libx11"
8
9SRC_URI = " \
10 http://download.savannah.gnu.org/releases/${BPN}/${BPN}_${PV}-src.tar.gz \
11 file://default.lua \
12 file://devilspie2.desktop \
13"
14SRC_URI[md5sum] = "26eed0b5b4af5c7e13c551eceaeab832"
15SRC_URI[sha256sum] = "ecffc17c62b41e196b72340192a90c4223329df041f135e74c0990860595f828"
16
17inherit distro_features_check pkgconfig gettext
18
19REQUIRED_DISTRO_FEATURES = "x11"
20
21do_compile() {
22 export GTK2=1
23 oe_runmake CC="${CC}" CPPFLAGS="${CPPFLAGS}" LDFLAGS=" -ldl -lm ${LDFLAGS}"
24}
25
26do_install() {
27 oe_runmake DESTDIR="${D}" PREFIX="${prefix}" install
28 install -d ${D}/${sysconfdir}/devilspie2
29 install -m 644 ${WORKDIR}/default.lua ${D}/${sysconfdir}/devilspie2
30 install -d ${D}/${sysconfdir}/xdg/autostart
31 install -m 644 ${WORKDIR}/devilspie2.desktop ${D}/${sysconfdir}/xdg/autostart
32}