wok-next view util-linux/receipt @ rev 20748
Update (b)deps
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed May 30 20:13:48 2018 +0300 (2018-05-30) |
parents | dfe25744cfaf |
children | e7a485521d6a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="util-linux"
4 VERSION="2.31.1"
5 CATEGORY="meta"
6 SHORT_DESC="Random collection of Linux utilities"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2 LGPL2.1 BSD PublicDomain"
9 WEB_SITE="https://en.wikipedia.org/wiki/Util-linux"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/util-linux.html"
12 TARBALL="$PACKAGE-${VERSION%.0}.tar.xz"
13 WGET_URL="https://www.kernel.org/pub/linux/utils/util-linux/v${VERSION%.*}/$TARBALL"
15 BUILD_DEPENDS="libcap-dev readline-dev python-dev glib gtk-doc \
16 libxslt gettext ncurses-dev zlib-dev"
17 COOKOPTS="!menus"
18 SPLIT="util-linux-bash-completion util-linux-blkid util-linux-blkid-dev \
19 util-linux-blockdev util-linux-cfdisk util-linux-column util-linux-cramfs \
20 util-linux-eject util-linux-fdisk util-linux-fdisk-dev util-linux-flock \
21 util-linux-getopt util-linux-manpages util-linux-minix util-linux-mkfs \
22 util-linux-mount util-linux-mount-dev util-linux-partx util-linux-setterm \
23 util-linux-sfdisk util-linux-smartcols util-linux-smartcols-dev \
24 util-linux-uuid util-linux-uuid-dev util-linux-whereis util-linux-misc"
26 compile_rules() {
27 # Fix undeclared 'LINE_MAX'
28 case "$ARCH" in
29 arm) sed -i s'|LINE_MAX|25|' text-utils/*.c ;;
30 esac
32 mkdir -p $install/var/lib/hwclock
33 ./configure \
34 ADJTIME_PATH=/var/lib/hwclock/adjtime \
35 --disable-static \
36 --without-systemd \
37 --without-systemdsystemunitdir &&
38 fix libtool &&
39 make && make install || exit 1
41 install -Dm644 $stuff/cfdisk.desktop \
42 $install/usr/share/applications/cfdisk.desktop
43 }
45 genpkg_rules() {
46 case ${PACKAGE#util-linux-} in
47 bash-completion)
48 copy bash-completion/
49 CAT="shells|BASH completions"
50 DEPENDS="bash"
51 ;;
52 blkid)
53 copy lsblk blkid libblkid.so*
54 CAT="base-system|blkid utility"
55 DEPENDS="glibc-base util-linux-mount util-linux-smartcols \
56 util-linux-uuid"
57 ;;
58 blkid-dev)
59 copy blkid.h blkid.pc
60 CAT="development|blkid development files"
61 DEPENDS="util-linux-blkid util-linux-uuid-dev"
62 ;;
63 blockdev)
64 copy blockdev
65 CAT="base-system|blockdev utility"
66 DEPENDS="glibc-base"
67 ;;
68 cfdisk)
69 copy cfdisk cfdisk.desktop
70 CAT="system-tools|cfdisk utility"
71 DEPENDS="glibc-base ncurses util-linux-blkid util-linux-fdisk \
72 util-linux-mount util-linux-smartcols util-linux-uuid"
73 ;;
74 column)
75 copy column col colrm colcrt
76 CAT="base-system|column utility"
77 DEPENDS="glibc-base"
78 ;;
79 cramfs)
80 copy *.cramfs
81 CAT="system-tools|cramfs utilities"
82 DEPENDS="glibc-base zlib"
83 ;;
84 eject)
85 copy eject
86 CAT="base-system|eject utility"
87 DEPENDS="glibc-base util-linux-blkid util-linux-mount \
88 util-linux-uuid"
89 ;;
90 fdisk)
91 copy fdisk libfdisk.so*
92 CAT="system-tools|fdisk utility"
93 DEPENDS="glibc-base ncurses readline util-linux-blkid \
94 util-linux-smartcols util-linux-uuid"
95 ;;
96 fdisk-dev)
97 copy libfdisk.h fdisk.pc
98 CAT="development|fdisk utility development files"
99 DEPENDS="util-linux-fdisk util-linux-blkid-dev util-linux-uuid-dev"
100 ;;
101 flock)
102 copy flock lslocks
103 CAT="base-system|flock utility"
104 DEPENDS="glibc-base"
105 ;;
106 getopt)
107 copy getopt
108 CAT="base-system|getopt utility"
109 DEPENDS="glibc-base"
110 ;;
111 manpages)
112 copy man/
113 CAT="doc|manual pages"
114 DEPENDS=" "
115 ;;
116 minix)
117 copy *.minix
118 CAT="system-tools|minix utilities"
119 DEPENDS="glibc-base"
120 ;;
121 mkfs)
122 copy mk*
123 rm -r $fs/usr
124 CAT="base-system|mkfs utilities"
125 DEPENDS="glibc-base util-linux-blkid util-linux-uuid zlib"
126 ;;
127 mount)
128 copy findmnt mount libmount.so* mountpoint umount
129 CAT="base-system|mount utilities"
130 DEPENDS="glibc-base util-linux-blkid util-linux-uuid \
131 util-linux-smartcols"
132 ;;
133 mount-dev)
134 copy libmount.h mount.pc
135 CAT="development|mount utilities development files"
136 DEPENDS="util-linux-mount util-linux-blkid-dev util-linux-uuid-dev"
137 ;;
138 partx)
139 copy addpart delpart partx resizepart
140 CAT="system-tools|partx utilities"
141 DEPENDS="glibc-base util-linux-blkid util-linux-uuid \
142 util-linux-smartcols"
143 ;;
144 setterm)
145 copy setterm
146 CAT="base-system|setterm utility"
147 DEPENDS="glibc-base ncurses"
148 ;;
149 sfdisk)
150 copy sfdisk
151 CAT="system-tools|sfdisk utility"
152 DEPENDS="glibc-base ncurses readline util-linux-blkid \
153 util-linux-fdisk util-linux-smartcols util-linux-uuid"
154 ;;
155 smartcols)
156 copy libsmartcols.so*
157 CAT="system-tools|smartcols library"
158 DEPENDS="glibc-base"
159 ;;
160 smartcols-dev)
161 copy libsmartcols.h smartcols.pc
162 CAT="development|smartcols library development files"
163 DEPENDS="util-linux-smartcols"
164 ;;
165 uuid)
166 copy libuuid.so* uuidgen uuidd
167 CAT="base-system|uuid utility and library"
168 DEPENDS="glibc-base"
169 ;;
170 uuid-dev)
171 copy uuid.h uuid.pc
172 CAT="development|uuid utility and library development files"
173 DEPENDS="util-linux-uuid"
174 ;;
175 whereis)
176 copy whereis
177 CAT="base-system|whereis utility"
178 DEPENDS="glibc-base"
179 ;;
180 misc)
181 copy @std @dev @rm
182 CAT="system-tools|misc utilities"
183 ;;
184 util-linux)
185 TAGS="LFS"
186 ;;
187 esac
189 if [ "$PACKAGE" != 'util-linux-bash-completion' -a -d "$fs/usr/share/bash-completion" ]; then
190 rm -r $fs/usr/share/bash-completion
191 rmdir --parents --ignore-fail-on-non-empty $fs/usr/share
192 fi
193 }