# Maintainer: Natanael Copa pkgname=e2fsprogs pkgver=1.41.12 pkgrel=0 pkgdesc="Standard Ext2/3/4 filesystem utilities" url="http://e2fsprogs.sourceforge.net" arch="x86 x86_64" license="GPL LGPL MIT" depends= install="$pkgname.post-upgrade" makedepends="util-linux-ng-dev pkgconfig" subpackages="$pkgname-dev $pkgname-doc libcom_err" source="http://downloads.sourceforge.net/sourceforge/e2fsprogs/e2fsprogs-$pkgver.tar.gz" depends_dev="util-linux-ng-dev" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" } build () { cd "$_builddir" ./configure \ --mandir=/usr/share/man \ --enable-elf-shlibs \ --disable-fsck \ --disable-uuidd \ --disable-libuuid \ --disable-libblkid \ --disable-tls \ --disable-nls make || return 1 } package() { cd "$_builddir" make LDCONFIG=: DESTDIR="${pkgdir}" install install-libs || return 1 } libcom_err() { depends= replaces="e2fsprogs" mkdir -p "$subpkgdir"/lib "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libcom_err* "$subpkgdir"/usr/lib/ mv "$pkgdir"/lib/libcom_err* "$subpkgdir"/lib/ } md5sums="1b24a21fc0c2381ef420961cbfec733f e2fsprogs-1.41.12.tar.gz"