summaryrefslogtreecommitdiff
path: root/package/upower/Makefile
blob: ea448a693746bb509c500c0c4e5bf80e32dac17c (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		upower
PKG_VERSION:=		0.99.0
PKG_RELEASE:=		1
PKG_MD5SUM:=		14f43bc13353e23e7280863f33ac50d2
PKG_DESCR:=		powermanagement
PKG_SECTION:=		misc
PKG_BUILDDEP:=		glib dbus-glib polkit systemd
PKG_DEPENDS:=		glib dbus-glib polkit libgudev
PKG_URL:=		http://upower.freedesktop.org/
PKG_SITES:=		http://upower.freedesktop.org/releases/

DISTFILES:=             ${PKG_NAME}-${PKG_VERSION}.tar.xz

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,UPOWER,upower,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

upower-install:
	$(INSTALL_DIR) $(IDIR_UPOWER)/etc
	$(CP) $(WRKINST)/etc/* \
		$(IDIR_UPOWER)/etc
	$(INSTALL_DIR) $(IDIR_UPOWER)/usr/lib
	$(CP) $(WRKINST)/usr/lib/libupower*.so* \
		$(IDIR_UPOWER)/usr/lib
	$(INSTALL_DIR) $(IDIR_UPOWER)/usr/sbin
	$(INSTALL_BIN) $(WRKINST)/usr/libexec/upowerd \
		$(IDIR_UPOWER)/usr/sbin
	$(INSTALL_DIR) $(IDIR_UPOWER)/usr/bin
	$(INSTALL_BIN) $(WRKINST)/usr/bin/upower \
		$(IDIR_UPOWER)/usr/bin

include ${TOPDIR}/mk/pkg-bottom.mk