summaryrefslogtreecommitdiffstats
path: root/rules/ncdu.make
blob: f4817b9de3b6a169c4e12538cbbe52740b9a44d4 (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
# -*-makefile-*-
#
# Copyright (C) 2016,2020 by Alexander Dahl <ada@thorsis.com>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_NCDU) += ncdu

#
# Paths and names
#
NCDU_VERSION	:= 1.14.2
NCDU_MD5	:= 6c7e88b0c205f124f397de701402ad3a
NCDU		:= ncdu-$(NCDU_VERSION)
NCDU_SUFFIX	:= tar.gz
NCDU_URL	:= https://dev.yorhel.nl/download/$(NCDU).$(NCDU_SUFFIX)
NCDU_SOURCE	:= $(SRCDIR)/$(NCDU).$(NCDU_SUFFIX)
NCDU_DIR	:= $(BUILDDIR)/$(NCDU)
NCDU_LICENSE	:= MIT
NCDU_LICENSE_FILES := file://COPYING;md5=1a8f907df32388f0d4b8cc88479f9a6a

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

NCDU_CONF_TOOL	:= autoconf
NCDU_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	$(GLOBAL_LARGE_FILE_OPTION) \
	--$(call ptx/wow, PTXCONF_NCDU_WIDE_CHAR)-ncurses \
	--$(call ptx/wwo, PTXCONF_NCDU_WIDE_CHAR)-ncursesw

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

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

	@$(call install_init, ncdu)
	@$(call install_fixup, ncdu,PRIORITY,optional)
	@$(call install_fixup, ncdu,SECTION,base)
	@$(call install_fixup, ncdu,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
	@$(call install_fixup, ncdu,DESCRIPTION,missing)

	@$(call install_copy, ncdu, 0, 0, 0755, -, /usr/bin/ncdu)

	@$(call install_finish, ncdu)

	@$(call touch)

# vim: ft=make noet tw=72 ts=8 sw=8