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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
# -*-makefile-*-
#
# Copyright (C) 2018 by Ladislav Michl <ladis@linux-mips.org>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_UPOWER) += upower
#
# Paths and names
#
UPOWER_VERSION := 0.99.7
UPOWER_MD5 := 236bb439d9ff1151450b3d8582399532
UPOWER := upower-$(UPOWER_VERSION)
UPOWER_SUFFIX := tar.xz
UPOWER_URL := https://upower.freedesktop.org/releases/$(UPOWER).$(UPOWER_SUFFIX)
UPOWER_SOURCE := $(SRCDIR)/$(UPOWER).$(UPOWER_SUFFIX)
UPOWER_DIR := $(BUILDDIR)/$(UPOWER)
UPOWER_LICENSE := GPL-2.0-or-later
UPOWER_LICENSE_FILES := file://COPYING;md5=0de8fbf1d97a140d1d93b9f14dcfbf08
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# autoconf
#
UPOWER_CONF_TOOL := autoconf
UPOWER_CONF_OPT = \
$(CROSS_AUTOCONF_USR) \
--$(call ptx/endis, PTXCONF_UPOWER_INTROSPECTION)-introspection \
$(GLOBAL_LARGE_FILE_OPTION) \
--enable-shared \
--disable-static \
--enable-fast-install \
--disable-libtool-lock \
--disable-deprecated \
--disable-man-pages \
--disable-gtk-doc \
--disable-gtk-doc-html \
--disable-gtk-doc-pdf \
--disable-tests \
--disable-nls \
--disable-rpath \
--with-udevrulesdir=/usr/lib/udev/rules.d \
--with-historydir=/var/lib/upower \
--with-systemdutildir=/usr/lib/systemd/scripts \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
--with-backend=linux \
--without-idevice
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/upower.targetinstall:
@$(call targetinfo)
@$(call install_init, upower)
@$(call install_fixup, upower,PRIORITY,optional)
@$(call install_fixup, upower,SECTION,base)
@$(call install_fixup, upower,AUTHOR,"Ladislav Michl <ladis@linux-mips.org>")
@$(call install_fixup, upower,DESCRIPTION, "upower")
@$(call install_lib, upower, 0, 0, 0644, libupower-glib)
@$(call install_copy, upower, 0, 0, 0755, -, /usr/bin/upower)
@$(call install_copy, upower, 0, 0, 0755, -, /usr/libexec/upowerd)
@$(call install_alternative, upower, 0, 0, 0644, \
/etc/UPower/UPower.conf)
@$(call install_alternative, upower, 0, 0, 0644, \
/etc/dbus-1/system.d/org.freedesktop.UPower.conf)
@$(call install_alternative, upower, 0, 0, 0644, \
/usr/share/dbus-1/system-services/org.freedesktop.UPower.service)
@$(call install_tree, upower, 0, 0, -, /usr/lib/udev/rules.d)
ifdef PTXCONF_UPOWER_SYSTEMD_UNIT
@$(call install_alternative, upower, 0, 0, 0644, \
/usr/lib/systemd/system/upower.service)
endif
ifdef PTXCONF_UPOWER_INTROSPECTION
@$(call install_copy, upower, 0, 0, 0644, -, \
/usr/lib/girepository-1.0/UPowerGlib-1.0.typelib)
endif
@$(call install_copy, upower, 0, 0, 0755, /var/lib/upower)
@$(call install_finish, upower)
@$(call touch)
# vim: syntax=make
|