# Contributor: Valery Kartel # Maintainer: Natanael Copa pkgname=e2fsprogs pkgver=1.43.1 pkgrel=0 pkgdesc="Standard Ext2/3/4 filesystem utilities" url="http://e2fsprogs.sourceforge.net" arch="all" license="GPL LGPL MIT" depends= install= depends_dev="util-linux-dev" makedepends="$depends_dev linux-headers" subpackages="$pkgname-dev $pkgname-doc libcom_err $pkgname-libs $pkgname-extra" source="http://downloads.sourceforge.net/sourceforge/e2fsprogs/e2fsprogs-$pkgver.tar.gz mke2fs-uninit_bg.patch " _builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build () { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --mandir=/usr/share/man \ --enable-elf-shlibs \ --enable-symlink-install \ --disable-fsck \ --disable-uuidd \ --disable-libuuid \ --disable-libblkid \ --disable-tls \ --disable-nls \ || return 1 make || return 1 } package() { cd "$_builddir" make -j1 LDCONFIG=: DESTDIR="$pkgdir" install install-libs || return 1 mv "$pkgdir"/sbin/* "$pkgdir"/usr/sbin/ for i in e2fsck mke2fs mkfs.* fsck.*; do mv "$pkgdir"/usr/sbin/$i "$pkgdir"/sbin/ done } dev() { default_dev mkdir -p "$subpkgdir"/usr/bin mkdir -p "$subpkgdir"/usr/share mv "$pkgdir"/usr/bin/compile_et "$pkgdir"/usr/bin/mk_cmds \ "$subpkgdir"/usr/bin/ mv "$pkgdir"/usr/share/et "$pkgdir"/usr/share/ss \ "$subpkgdir"/usr/share } libcom_err() { pkgdesc="Common error description library" mkdir -p "$subpkgdir"/lib mv "$pkgdir"/lib/libcom_err* "$subpkgdir"/lib/ } extra() { depends="$pkgname" pkgdesc="Ext2/3/4 filesystem extra utilities" mkdir -p "$subpkgdir" rmdir "$pkgdir"/lib || return 1 mv "$pkgdir"/usr "$subpkgdir"/ } md5sums="1775f3f0eed9dee1c5f39e08d1964a97 e2fsprogs-1.43.1.tar.gz aec2304bbeb1d589e802cec78360db95 mke2fs-uninit_bg.patch" sha256sums="83dba1d96dfdba06f1ca0da6a77d539c22391b99fbd9bd733699689ca25dbebc e2fsprogs-1.43.1.tar.gz 38e62b1604601861cb4088030ae0569b325fab4a09c600bd14f17174a6a36e18 mke2fs-uninit_bg.patch" sha512sums="979f6b83f0c0650fd27e0a63dfe0cfb7690de71977f374a43ccdb0b77f49c40531d6b9a6a16c4a3b31a16cc4f4906846862a489c6d4b8bf036530ce72ffd36bb e2fsprogs-1.43.1.tar.gz d27034edaa776879bbd218fefedc22e6e3af507d363877da99ecbda8c688f75017fde3e2a934c92ce16b6accedec7404da4a209f7f4e1e856b57983f99f1f964 mke2fs-uninit_bg.patch"