wok-next annotate e2fsprogs/receipt @ rev 20237

Add Qt5 applications: notes, qtav, miam-player
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 06 15:59:23 2017 +0200 (2017-11-06)
parents 18c4d15a72df
children 90a5eb560fd6
rev   line source
al@19741 1 # SliTaz package receipt v2.
pankso@5 2
pankso@5 3 PACKAGE="e2fsprogs"
al@19741 4 VERSION="1.43.4"
pankso@271 5 CATEGORY="base-system"
al@19741 6 SHORT_DESC="Filesystem utilities for use with ext2 and ext3"
pankso@5 7 MAINTAINER="pankso@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
pankso@5 9 WEB_SITE="http://e2fsprogs.sourceforge.net/"
pankso@12854 10 HOST_ARCH="i486 arm"
pankso@12854 11
al@19577 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@19577 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
al@19577 14
al@19577 15 BUILD_DEPENDS="util-linux-uuid-dev util-linux-blkid-dev gettext attr-dev \
al@19577 16 acl-dev texinfo"
al@19741 17 BUILD_DEPENDS_arm=" "
al@19741 18 SPLIT="libcomerr libcomerr-dev e2fsprogs-dev e2fsprogs-fsck"
pankso@15943 19
pankso@5 20 # Rules to configure and make the package.
pankso@5 21 compile_rules()
pankso@5 22 {
al@19577 23 sed -i -e 's:\[\.-\]::' tests/filter.sed
pankso@12854 24 mkdir ../build && cd ../build
al@19577 25
pankso@12854 26 $src/configure \
al@19577 27 --bindir=/bin \
al@19577 28 --sysconfdir=/etc \
pankso@12 29 --with-root-prefix="" \
pankso@12 30 --enable-elf-shlibs \
al@19577 31 --disable-libblkid \
al@19577 32 --disable-libuuid \
al@19577 33 --disable-uuidd \
al@19577 34 --disable-fsck \
al@19577 35 $CONFIGURE_ARGS &&
al@19577 36 make && make install && make install-libs
al@19577 37
al@19577 38 for i in libcom_err libe2p libext2fs libss; do
al@19577 39 chmod u+w $install/usr/lib/$i.a
al@19577 40 done
al@19577 41
al@19577 42 # Make .info usable
al@19577 43 gunzip $install/usr/share/info/libext2fs.info.gz
al@19577 44 install-info --dir-file=$install/usr/share/info/dir \
al@19577 45 $install/usr/share/info/libext2fs.info
al@19577 46
al@19577 47 # Additional documentation
al@19577 48 makeinfo -o $src/doc/com_err.info $src/lib/et/com_err.texinfo
al@19577 49 install -m644 $src/doc/com_err.info $install/usr/share/info
al@19577 50 install-info --dir-file=$install/usr/share/info/dir \
al@19577 51 $install/usr/share/info/com_err.info
al@19577 52
al@19577 53 # Remove illegal symbol '\b'
al@19577 54 sed -i 's|\\b||' $src/po/de.po
al@19577 55 msgfmt $src/po/de.po -o $src/po/de.gmo
pankso@5 56 }
pankso@5 57
pankso@5 58 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@5 59 genpkg_rules()
pankso@5 60 {
al@19741 61 case $PACKAGE in
al@19741 62 e2fsprogs)
al@19741 63 copy bin/ sbin/ etc/ *.so*
al@19741 64 find $fs -name '*com_err*' -delete
al@19741 65 # Remove fsck provided by Busybox.
al@19741 66 rm $fs/sbin/fsck*
al@19741 67 DEPENDS="libcomerr util-linux-blkid util-linux-uuid"
al@19741 68 ;;
al@19741 69 e2fsprogs-dev)
al@19741 70 copy @dev *.awk *.sed
al@19741 71 find $fs \( -name com_err.h -o -name libcom_err.a -o -name com_err.pc \) -delete
al@19741 72 DEPENDS="libcomerr-dev pkg-config"
al@19741 73 ;;
al@19741 74 libcomerr)
al@19741 75 copy libcom_err.so*
al@19741 76 CAT="base-system|libcomerr library"
al@19741 77 DEPENDS=" "
al@19741 78 ;;
al@19741 79 libcomerr-dev)
al@19741 80 copy libcom_err.a com_err.h com_err.pc
al@19741 81 CAT="development|libcomerr development files"
al@19741 82 DEPENDS="pkg-config"
al@19741 83 ;;
al@19741 84 e2fsprogs-fsck)
al@19741 85 copy fsck.*
al@19741 86 rm -r $fs/usr
al@19741 87 CAT="system-tools|fsck tools"
al@19741 88 DEPENDS="e2fsprogs libcomerr util-linux-blkid util-linux-uuid"
al@19741 89 ;;
al@19741 90 esac
pankso@5 91 }
pascal@8876 92
pascal@8876 93 # Overlap busybox
al@19741 94 pre_install_e2fsprogs()
pascal@8876 95 {
al@19577 96 rm -f $1/sbin/tune2fs
pascal@8876 97 }