summaryrefslogtreecommitdiffstats
path: root/rules/latencytop.make
blob: 18d8ba7a8081c9924499706569840e6738a191cb (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
# -*-makefile-*-
#
# Copyright (C) 2010 by Remy Bohmer <linux@bohmer.net>
#
# 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_LATENCYTOP) += latencytop

#
# Paths and names
#
LATENCYTOP_VERSION	:= 0.5
LATENCYTOP_MD5		:= 73bb3371c6ee0b0e68e25289027e865c
LATENCYTOP		:= latencytop-$(LATENCYTOP_VERSION)
LATENCYTOP_SUFFIX	:= tar.gz
LATENCYTOP_TARBALL	:= latencytop_$(LATENCYTOP_VERSION).orig.$(LATENCYTOP_SUFFIX)
LATENCYTOP_URL		:= http://snapshot.debian.org/archive/debian/20180814T030639Z/pool/main/l/latencytop/$(LATENCYTOP_TARBALL)
LATENCYTOP_SOURCE	:= $(SRCDIR)/$(LATENCYTOP_TARBALL)
LATENCYTOP_DIR		:= $(BUILDDIR)/$(LATENCYTOP)
LATENCYTOP_LICENSE	:= GPL-2.0-only

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

LATENCYTOP_CONF_TOOL	:= NO
LATENCYTOP_COMPILE_ENV	:= $(CROSS_ENV_FLAGS)
LATENCYTOP_MAKE_OPT	:= \
	$(CROSS_ENV_CC) \
	HAS_GTK_GUI=
LATENCYTOP_INSTALL_OPT	:= \
	$(LATENCYTOP_MAKE_OPT) \
	DESTDIR=$(LATENCYTOP_PKGDIR) \
	install

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/latencytop.targetinstall:
	@$(call targetinfo)

	@$(call install_init,  latencytop)
	@$(call install_fixup, latencytop,PRIORITY,optional)
	@$(call install_fixup, latencytop,SECTION,base)
	@$(call install_fixup, latencytop,AUTHOR,"Remy Bohmer <linux@bohmer.net>")
	@$(call install_fixup, latencytop,DESCRIPTION,missing)

	@$(call install_copy, latencytop, 0, 0, 0644, -, \
				/usr/share/latencytop/latencytop.trans)
	@$(call install_copy, latencytop, 0, 0, 0755, -, /usr/sbin/latencytop)

	@$(call install_finish, latencytop)
	@$(call touch)

# vim: syntax=make