1 # Maintainer: Ronald van Haren <ronald.archlinux.org>
2 # Contributor: judd <jvinet@zeroflux.org>
7 pkgdesc="Ext2/3/4 filesystem utilities"
9 license=('GPL' 'LGPL' 'MIT')
10 url="http://e2fsprogs.sourceforge.net"
11 depends=('sh' 'util-linux-libs')
12 makedepends=('systemd' 'util-linux')
13 provides=('libcom_err.so'
17 backup=('etc/mke2fs.conf')
18 options=('staticlibs')
19 validpgpkeys=('3AB057B7E78D945C8C5591FBD36F769BC11804F0') # Theodore Ts'o <tytso@mit.edu>
20 source=("https://www.kernel.org/pub/linux/kernel/people/tytso/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar."{xz,sign}
22 sha256sums=('b11042533c1b1dcf17512f0da48e05b0c573dada1dd8b762864d10f4dc399713'
24 'cc45386c1d71f438ad648fd7971e49e3074ad9dbacf9dd3a5b4cb61fd294ecbb')
28 cd "${srcdir}/${pkgname}-${pkgver}"
30 # Remove unnecessary init.d directory
31 sed -i '/init\.d/s|^|#|' misc/Makefile.in
35 cd "${srcdir}/${pkgname}-${pkgver}"
39 --with-root-prefix="" \
50 # regenerate locale files
51 find po/ -name '*.gmo' -delete
58 cd "${srcdir}/${pkgname}-${pkgver}"
59 make DESTDIR="${pkgdir}" install install-libs
61 sed -i -e 's/^AWK=.*/AWK=awk/' "${pkgdir}/usr/bin/compile_et"
63 # remove references to build directory
64 sed -i -e 's#^SS_DIR=.*#SS_DIR="/usr/share/ss"#' "${pkgdir}/usr/bin/mk_cmds"
65 sed -i -e 's#^ET_DIR=.*#ET_DIR="/usr/share/et"#' "${pkgdir}/usr/bin/compile_et"
67 # remove static libraries with a shared counterpart
68 rm "${pkgdir}"/usr/lib/lib{com_err,e2p,ext2fs,ss}.a
71 install -Dm644 "${srcdir}/MIT-LICENSE" \
72 "${pkgdir}/usr/share/licenses/${pkgname}/MIT-LICENSE"