wok-next view e2fsprogs/receipt @ rev 20513

A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 21 15:58:17 2018 +0200 (2018-03-21)
parents 90a5eb560fd6
children 757d032c55c7
line source
1 # SliTaz package receipt v2.
3 PACKAGE="e2fsprogs"
4 VERSION="1.43.5"
5 CATEGORY="base-system"
6 SHORT_DESC="Filesystem utilities for use with ext2 and ext3"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://e2fsprogs.sourceforge.net/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/e2fsprogs.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS_arm=" "
16 BUILD_DEPENDS="util-linux-uuid-dev util-linux-blkid-dev gettext attr-dev \
17 acl-dev texinfo"
18 SPLIT="libcomerr-dev e2fsprogs-dev e2fsprogs-fsck libcomerr e2fsprogs"
20 compile_rules() {
21 sed -i -e 's:\[\.-\]::' tests/filter.sed
22 mkdir ../build && cd ../build
24 $src/configure \
25 --bindir=/bin \
26 --sysconfdir=/etc \
27 --with-root-prefix="" \
28 --enable-elf-shlibs \
29 --disable-libblkid \
30 --disable-libuuid \
31 --disable-uuidd \
32 --disable-fsck \
33 $CONFIGURE_ARGS &&
34 make && make install && make install-libs || return 1
36 for i in libcom_err libe2p libext2fs libss; do
37 chmod u+w $install/usr/lib/$i.a
38 done
40 # Make .info usable
41 gunzip $install/usr/share/info/libext2fs.info.gz
42 install-info --dir-file=$install/usr/share/info/dir \
43 $install/usr/share/info/libext2fs.info
45 # Additional documentation
46 makeinfo -o $src/doc/com_err.info $src/lib/et/com_err.texinfo
47 install -m644 $src/doc/com_err.info $install/usr/share/info
48 install-info --dir-file=$install/usr/share/info/dir \
49 $install/usr/share/info/com_err.info
51 # Remove illegal symbol '\b'
52 sed -i 's|\\b||' $src/po/de.po
53 msgfmt $src/po/de.po -o $src/po/de.gmo
54 }
56 genpkg_rules() {
57 case $PACKAGE in
58 libcomerr-dev)
59 copy libcom_err.a com_err.h com_err.pc
60 CAT="development|libcomerr development files"
61 DEPENDS=" "
62 ;;
63 e2fsprogs-dev)
64 copy @dev *.sed *.awk @rm
65 DEPENDS="libcomerr-dev"
66 ;;
67 e2fsprogs-fsck)
68 copy sbin/fsck.*
69 CAT="system-tools|fsck tools"
70 DEPENDS="e2fsprogs libcomerr util-linux-blkid util-linux-uuid"
71 ;;
72 libcomerr)
73 copy libcom_err.so*
74 CAT="base-system|libcomerr library"
75 DEPENDS=" "
76 ;;
77 e2fsprogs)
78 copy @std @rm
79 DEPENDS="libcomerr util-linux-blkid util-linux-uuid"
80 TAGS="LFS"
81 ;;
82 esac
83 }
85 # Overlap busybox
86 pre_install_e2fsprogs() {
87 rm -f $1/sbin/tune2fs
88 }