Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | DESCRIPTION = "Devilspie2 is a window matching utility, allowing the user to perform scripted actions on windows as they are created" |
| 2 | HOMEPAGE = "http://www.gusnan.se/devilspie2" |
| 3 | LICENSE = "GPLv3" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=00aefaa50aad75c21367df66102d542c \ |
| 5 | file://GPL3.txt;md5=d32239bcb673463ab874e80d47fae504" |
| 6 | |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 7 | DEPENDS = "gtk+ glib-2.0 libwnck libxinerama lua virtual/libx11" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 8 | |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 9 | PV .= "+git${SRCPV}" |
| 10 | |
| 11 | SRCREV = "a3ee65b815a0247a0dbdaa39353444cef6f93499" |
| 12 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 13 | SRC_URI = "git://github.com/dsalt/devilspie2;branch=master;protocol=https \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 14 | file://default.lua \ |
| 15 | file://devilspie2.desktop \ |
| 16 | " |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 17 | |
| 18 | S = "${WORKDIR}/git" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 19 | |
Brad Bishop | 8410d61 | 2019-11-25 09:40:59 -0500 | [diff] [blame] | 20 | inherit features_check pkgconfig gettext |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 21 | |
| 22 | REQUIRED_DISTRO_FEATURES = "x11" |
| 23 | |
| 24 | do_compile() { |
| 25 | export GTK2=1 |
| 26 | oe_runmake CC="${CC}" CPPFLAGS="${CPPFLAGS}" LDFLAGS=" -ldl -lm ${LDFLAGS}" |
| 27 | } |
| 28 | |
| 29 | do_install() { |
| 30 | oe_runmake DESTDIR="${D}" PREFIX="${prefix}" install |
| 31 | install -d ${D}/${sysconfdir}/devilspie2 |
| 32 | install -m 644 ${WORKDIR}/default.lua ${D}/${sysconfdir}/devilspie2 |
| 33 | install -d ${D}/${sysconfdir}/xdg/autostart |
| 34 | install -m 644 ${WORKDIR}/devilspie2.desktop ${D}/${sysconfdir}/xdg/autostart |
| 35 | } |