# Contributor: Valery Kartel # Maintainer: Natanael Copa pkgname=e2fsprogs pkgver=1.44.2 pkgrel=0 pkgdesc="Standard Ext2/3/4 filesystem utilities" url="http://e2fsprogs.sourceforge.net" arch="all" license="GPL-2.0-or-later LGPL-2.0 BSD-3-Clause MIT" depends="" depends_dev="util-linux-dev" options="!check" makedepends="$depends_dev linux-headers" subpackages="$pkgname-dev $pkgname-doc libcom_err $pkgname-libs $pkgname-extra" source="https://www.kernel.org/pub/linux/kernel/people/tytso/$pkgname/v$pkgver/$pkgname-$pkgver.tar.xz " builddir="$srcdir/$pkgname-$pkgver" 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 make } package() { cd "$builddir" make -j1 LDCONFIG=: DESTDIR="$pkgdir" install install-libs mv "$pkgdir"/sbin/* "$pkgdir"/usr/sbin/ local i; 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 mv "$pkgdir"/usr "$subpkgdir"/ } sha512sums="db34be8c2b606da565a46635d9ed859ccc28921c9a494dd90fbe461a400d0411b0ec6582d3a858adc916d68ec5e835814da798f1cb44710b75fc4efe0145eb90 e2fsprogs-1.44.2.tar.xz"