1 # Maintainer: Ronald van Haren <ronald.archlinux.org>
2 # Contributor: judd <jvinet@zeroflux.org>
5 pkgname=('e2fsprogs' 'fuse2fs')
8 pkgdesc='Ext2/3/4 filesystem utilities'
10 license=('GPL' 'LGPL' 'MIT')
11 url='http://e2fsprogs.sourceforge.net'
13 makedepends=('systemd' 'util-linux' 'fuse')
14 validpgpkeys=('3AB057B7E78D945C8C5591FBD36F769BC11804F0') # Theodore Ts'o <tytso@mit.edu>
15 source=("https://www.kernel.org/pub/linux/kernel/people/tytso/${pkgbase}/v${pkgver}/${pkgbase}-${pkgver}.tar."{xz,sign}
17 sha256sums=('2f16c9176704cf645dc69d5b15ff704ae722d665df38b2ed3cfc249757d8d81e'
19 'cc45386c1d71f438ad648fd7971e49e3074ad9dbacf9dd3a5b4cb61fd294ecbb')
23 cd "${srcdir}/${pkgbase}-${pkgver}"
25 # Remove unnecessary init.d directory
26 sed -i '/init\.d/s|^|#|' misc/Makefile.in
30 cd "${srcdir}/${pkgbase}-${pkgver}"
34 --with-root-prefix='' \
44 # regenerate locale files
45 find po/ -name '*.gmo' -delete
50 depends=('sh' 'util-linux-libs')
51 optdepends=('lvm2: for e2scrub'
52 'util-linux: for e2scrub'
53 'smtp-forwarder: for e2scrub_fail script')
54 provides=('libcom_err.so'
58 backup=('etc/mke2fs.conf'
63 cd "${srcdir}/${pkgbase}-${pkgver}"
65 make DESTDIR="${pkgdir}" install install-libs
67 sed -i -e 's/^AWK=.*/AWK=awk/' "${pkgdir}/usr/bin/compile_et"
69 # remove references to build directory
70 sed -i -e 's#^DIR=.*#DIR="/usr/share/ss"#' "${pkgdir}/usr/bin/mk_cmds"
71 sed -i -e 's#^DIR=.*#DIR="/usr/share/et"#' "${pkgdir}/usr/bin/compile_et"
73 # remove static libraries with a shared counterpart
74 rm "${pkgdir}"/usr/lib/lib{com_err,e2p,ext2fs,ss}.a
76 # remove fuse2fs which will be packaged separately
77 rm "${pkgdir}"/usr/{bin/fuse2fs,share/man/man1/fuse2fs.1}
80 install -D -m0644 "${srcdir}/MIT-LICENSE" \
81 "${pkgdir}/usr/share/licenses/${pkgname}/MIT-LICENSE"
85 pkgdesc='Ext2/3/4 filesystem driver for FUSE'
86 depends=('fuse' 'e2fsprogs')
88 cd "${srcdir}/${pkgbase}-${pkgver}"
90 install -D -m0755 'misc/fuse2fs' "${pkgdir}/usr/bin/fuse2fs"
91 install -D -m0644 'misc/fuse2fs.1' "${pkgdir}/usr/share/man/man1/fuse2fs.1"
92 mkdir -p "${pkgdir}"/usr/share/licenses
93 ln -s "${pkgbase}" "${pkgdir}/usr/share/licenses/${pkgname}"