seatd: add package
authorDaniel Golle <daniel@makrotopia.org>
Sun, 22 Aug 2021 20:14:39 +0000 (21:14 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 6 Oct 2021 23:26:50 +0000 (00:26 +0100)
Seatd is a minimal seat management daemon.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libs/seatd/Makefile [new file with mode: 0644]

diff --git a/libs/seatd/Makefile b/libs/seatd/Makefile
new file mode 100644 (file)
index 0000000..f2cd1db
--- /dev/null
@@ -0,0 +1,74 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=seatd
+PKG_VERSION:=0.5.0
+PKG_RELEASE:=$(AUTORELEASE)
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://git.sr.ht/~kennylevinsen/seatd
+PKG_SOURCE_VERSION:=$(PKG_VERSION)
+PKG_MIRROR_HASH:=9b899307e8717dc21735b02c80ebc91d6925c6bc5037f4a438d01258f472bc77
+
+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
+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
+endef
+
+MESON_ARGS += \
+       -Dlogind=disabled \
+       -Dseatd=enabled \
+       -Dbuiltin=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/
+endef
+
+$(eval $(call BuildPackage,libseat))
+$(eval $(call BuildPackage,seatd))
+$(eval $(call HostBuild))