summaryrefslogtreecommitdiff
path: root/package/upower/Makefile
blob: 693359a538569fd04df5365c28f137263429d470 (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
# 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:=		2
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/

PKG_LIBC_DEPENDS:=	eglibc glibc

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}))

CONFIGURE_ARGS+=	--without-systemdutildir \
			--disable-rpath

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
	$(INSTALL_DIR) $(IDIR_UPOWER)/usr/share/dbus-1
	$(CP) $(WRKINST)/usr/share/dbus-1/* \
		$(IDIR_UPOWER)/usr/share/dbus-1

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