wok-next view util-linux/receipt @ rev 20931
pygobject3 -> python-pygobject (latest); pygobject -> python-pygobject2 (legacy)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Aug 23 08:03:04 2018 +0300 (2018-08-23) |
parents | 10df65db91ad |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="util-linux"
4 VERSION="2.32.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/development/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 &&
40 make install || exit 1
42 install -Dm644 $stuff/cfdisk.desktop \
43 $install/usr/share/applications/cfdisk.desktop
44 }
46 genpkg_rules() {
47 case ${PACKAGE#util-linux-} in
48 bash-completion)
49 copy bash-completion/
50 CAT="shells|BASH completions"
51 DEPENDS="bash"
52 ;;
53 blkid)
54 copy lsblk blkid libblkid.so*
55 CAT="base-system|blkid utility"
56 DEPENDS="glibc-base util-linux-mount util-linux-smartcols \
57 util-linux-uuid"
58 ;;
59 blkid-dev)
60 copy blkid.h blkid.pc
61 CAT="development|blkid development files"
62 DEPENDS="util-linux-blkid util-linux-uuid-dev"
63 ;;
64 blockdev)
65 copy blockdev
66 CAT="base-system|blockdev utility"
67 DEPENDS="glibc-base"
68 ;;
69 cfdisk)
70 copy cfdisk cfdisk.desktop
71 CAT="system-tools|cfdisk utility"
72 DEPENDS="glibc-base ncurses util-linux-blkid util-linux-fdisk \
73 util-linux-mount util-linux-smartcols util-linux-uuid"
74 ;;
75 column)
76 copy column col colrm colcrt
77 CAT="base-system|column utility"
78 DEPENDS="glibc-base"
79 ;;
80 cramfs)
81 copy *.cramfs
82 CAT="system-tools|cramfs utilities"
83 DEPENDS="glibc-base zlib"
84 ;;
85 eject)
86 copy eject
87 CAT="base-system|eject utility"
88 DEPENDS="glibc-base util-linux-blkid util-linux-mount \
89 util-linux-uuid"
90 ;;
91 fdisk)
92 copy fdisk libfdisk.so*
93 CAT="system-tools|fdisk utility"
94 DEPENDS="glibc-base ncurses readline util-linux-blkid \
95 util-linux-smartcols util-linux-uuid"
96 ;;
97 fdisk-dev)
98 copy libfdisk.h fdisk.pc
99 CAT="development|fdisk utility development files"
100 DEPENDS="util-linux-fdisk util-linux-blkid-dev util-linux-uuid-dev"
101 ;;
102 flock)
103 copy flock lslocks
104 CAT="base-system|flock utility"
105 DEPENDS="glibc-base"
106 ;;
107 getopt)
108 copy getopt
109 CAT="base-system|getopt utility"
110 DEPENDS="glibc-base"
111 ;;
112 manpages)
113 copy man/
114 CAT="doc|manual pages"
115 DEPENDS=" "
116 ;;
117 minix)
118 copy *.minix
119 CAT="system-tools|minix utilities"
120 DEPENDS="glibc-base"
121 ;;
122 mkfs)
123 copy mk*
124 rm -r $fs/usr
125 CAT="base-system|mkfs utilities"
126 DEPENDS="glibc-base util-linux-blkid util-linux-uuid zlib"
127 ;;
128 mount)
129 copy findmnt mount libmount.so* mountpoint umount
130 CAT="base-system|mount utilities"
131 DEPENDS="glibc-base util-linux-blkid util-linux-uuid \
132 util-linux-smartcols"
133 ;;
134 mount-dev)
135 copy libmount.h mount.pc
136 CAT="development|mount utilities development files"
137 DEPENDS="util-linux-mount util-linux-blkid-dev util-linux-uuid-dev"
138 ;;
139 partx)
140 copy addpart delpart partx resizepart
141 CAT="system-tools|partx utilities"
142 DEPENDS="glibc-base util-linux-blkid util-linux-uuid \
143 util-linux-smartcols"
144 ;;
145 setterm)
146 copy setterm
147 CAT="base-system|setterm utility"
148 DEPENDS="glibc-base ncurses"
149 ;;
150 sfdisk)
151 copy sfdisk
152 CAT="system-tools|sfdisk utility"
153 DEPENDS="glibc-base ncurses readline util-linux-blkid \
154 util-linux-fdisk util-linux-smartcols util-linux-uuid"
155 ;;
156 smartcols)
157 copy libsmartcols.so*
158 CAT="system-tools|smartcols library"
159 DEPENDS="glibc-base"
160 ;;
161 smartcols-dev)
162 copy libsmartcols.h smartcols.pc
163 CAT="development|smartcols library development files"
164 DEPENDS="util-linux-smartcols"
165 ;;
166 uuid)
167 copy libuuid.so* uuidgen uuidd
168 CAT="base-system|uuid utility and library"
169 DEPENDS="glibc-base"
170 ;;
171 uuid-dev)
172 copy uuid.h uuid.pc
173 CAT="development|uuid utility and library development files"
174 DEPENDS="util-linux-uuid"
175 ;;
176 whereis)
177 copy whereis
178 CAT="base-system|whereis utility"
179 DEPENDS="glibc-base"
180 ;;
181 misc)
182 copy @std @dev @rm
183 CAT="system-tools|misc utilities"
184 ;;
185 util-linux)
186 TAGS="LFS"
187 ;;
188 esac
190 if [ "$PACKAGE" != 'util-linux-bash-completion' -a -d "$fs/usr/share/bash-completion" ]; then
191 rm -r $fs/usr/share/bash-completion
192 rmdir --parents --ignore-fail-on-non-empty $fs/usr/share
193 fi
194 }