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