seatd: update to version 0.6.3
[feed/video.git] / libs / seatd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=seatd
4 PKG_VERSION:=0.6.3
5 PKG_RELEASE:=$(AUTORELEASE)
6
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_URL:=https://git.sr.ht/~kennylevinsen/seatd
9 PKG_SOURCE_VERSION:=$(PKG_VERSION)
10 PKG_MIRROR_HASH:=f3bcdf68b67ec48e637851031a839bff1835ca8462a03fa4f7556f431217af37
11
12 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
13 PKG_LICENSE:=MIT
14
15 PKG_INSTALL:=1
16 PKG_BUILD_DEPENDS:=wayland/host
17
18 include $(INCLUDE_DIR)/package.mk
19 include $(INCLUDE_DIR)/meson.mk
20
21 define Package/libseat
22 SECTION:=libs
23 CATEGORY:=Libraries
24 SUBMENU:=Video
25 TITLE:=libseat
26 URL:=https://git.sr.ht/~kennylevinsen/seatd
27 endef
28
29 define Package/libseat/description
30 A universal seat management library.
31 endef
32
33 define Package/seatd
34 SECTION:=libs
35 CATEGORY:=Libraries
36 SUBMENU:=Video
37 TITLE:=seatd
38 URL:=https://git.sr.ht/~kennylevinsen/seatd
39 DEPENDS:=+libseat
40 endef
41
42 define Package/seatd/description
43 A minimal seat management daemon.
44 endef
45
46 MESON_ARGS += \
47 -Dlibseat-logind=disabled \
48 -Dlibseat-seatd=enabled \
49 -Dlibseat-builtin=disabled \
50 -Dserver=enabled \
51 -Dexamples=disabled \
52 -Dman-pages=disabled \
53 -Ddefaultpath="/tmp/run/seatd.sock"
54
55 define Build/InstallDev
56 $(INSTALL_DIR) $(1)/usr/include
57 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/
60 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
62 endef
63
64 define Package/libseat/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
67 endef
68
69 define Package/seatd/install
70 $(INSTALL_DIR) $(1)/usr/bin
71 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/seatd $(1)/usr/bin/
72 $(INSTALL_DIR) $(1)/etc/init.d
73 $(INSTALL_BIN) ./files/seatd.init $(1)/etc/init.d/seatd
74 endef
75
76 $(eval $(call BuildPackage,libseat))
77 $(eval $(call BuildPackage,seatd))
78 $(eval $(call HostBuild))