wok-next view e2fsprogs/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 3460c1bb1b40
children add40df8725d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="e2fsprogs"
4 VERSION="1.44.4"
5 CATEGORY="base-system"
6 SHORT_DESC="Filesystem utilities for use with ext2 and ext3"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://e2fsprogs.sourceforge.net/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/development/chapter06/e2fsprogs.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="util-linux-uuid-dev util-linux-blkid-dev gettext-dev attr-dev \
16 acl-dev texinfo"
17 SPLIT="libcomerr-dev $PACKAGE-dev $PACKAGE-fsck libcomerr $PACKAGE"
19 compile_rules() {
20 # mkdir -p $install/usr/share/man/man8/
22 mkdir build
23 cd build
25 $src/configure \
26 --bindir=/bin \
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 &&
35 make -j1 MKDIR_P="mkdir -p" install install-libs || return 1
37 for i in libcom_err libe2p libext2fs libss; do
38 chmod u+w $install/usr/lib/$i.a
39 done
41 # Make .info usable
42 gunzip $install/usr/share/info/libext2fs.info.gz
43 install-info --dir-file=$install/usr/share/info/dir \
44 $install/usr/share/info/libext2fs.info
46 # Additional documentation
47 makeinfo -o $src/doc/com_err.info $src/lib/et/com_err.texinfo
48 install -m644 $src/doc/com_err.info $install/usr/share/info
49 install-info --dir-file=$install/usr/share/info/dir \
50 $install/usr/share/info/com_err.info
52 # Remove illegal symbol '\b'
53 sed -i 's|\\b||' $src/po/de.po
54 msgfmt $src/po/de.po -o $src/po/de.gmo
55 }
57 genpkg_rules() {
58 case $PACKAGE in
59 libcomerr-dev)
60 copy libcom_err.a com_err.h com_err.pc
61 CAT="development|libcomerr development files"
62 DEPENDS="libcomerr"
63 ;;
64 e2fsprogs-dev)
65 copy @dev *.sed *.awk @rm compile_et mk_cmds
66 DEPENDS="e2fsprogs e2fsprogs-fsck libcomerr-dev"
67 ;;
68 e2fsprogs-fsck)
69 copy sbin/fsck.*
70 CAT="system-tools|fsck tools"
71 DEPENDS="e2fsprogs libcomerr util-linux-blkid util-linux-uuid"
72 ;;
73 libcomerr)
74 copy libcom_err.so*
75 CAT="base-system|libcomerr library"
76 DEPENDS=" "
77 ;;
78 e2fsprogs)
79 copy @std @rm
80 DEPENDS="libcomerr util-linux-blkid util-linux-uuid"
81 TAGS="LFS"
82 ;;
83 esac
84 }
86 # Overlap busybox
87 pre_install_e2fsprogs() {
88 rm -f $1/sbin/tune2fs
89 }