PKGBUILD 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Maintainer: Ronald van Haren <ronald.archlinux.org>
  2. # Contributor: judd <jvinet@zeroflux.org>
  3. pkgname=e2fsprogs
  4. pkgver=1.44.4
  5. pkgrel=1
  6. pkgdesc="Ext2/3/4 filesystem utilities"
  7. arch=(x86_64 ppc64le)
  8. license=('GPL' 'LGPL' 'MIT')
  9. url="http://e2fsprogs.sourceforge.net"
  10. groups=('base')
  11. depends=('sh' 'libutil-linux')
  12. makedepends=('util-linux')
  13. backup=('etc/mke2fs.conf')
  14. options=('staticlibs')
  15. validpgpkeys=('3AB057B7E78D945C8C5591FBD36F769BC11804F0') # Theodore Ts'o <tytso@mit.edu>
  16. source=("https://www.kernel.org/pub/linux/kernel/people/tytso/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar."{xz,sign}
  17. 'MIT-LICENSE')
  18. sha256sums=('ee03b2f2180614c5ae5f6dd2666f8808de61c3d8b37d22ba86cc6daea25be55a'
  19. 'SKIP'
  20. 'cc45386c1d71f438ad648fd7971e49e3074ad9dbacf9dd3a5b4cb61fd294ecbb')
  21. prepare() {
  22. cd "${srcdir}/${pkgname}-${pkgver}"
  23. # Remove unnecessary init.d directory
  24. sed -i '/init\.d/s|^|#|' misc/Makefile.in
  25. }
  26. build() {
  27. cd "${srcdir}/${pkgname}-${pkgver}"
  28. ./configure \
  29. --prefix=/usr \
  30. --with-root-prefix="" \
  31. --libdir=/usr/lib \
  32. --sbindir=/usr/bin \
  33. --enable-elf-shlibs \
  34. --disable-fsck \
  35. --disable-uuidd \
  36. --disable-libuuid \
  37. --disable-libblkid
  38. make
  39. }
  40. package() {
  41. unset MAKEFLAGS
  42. cd "${srcdir}/${pkgname}-${pkgver}"
  43. make DESTDIR="${pkgdir}" install install-libs
  44. sed -i -e 's/^AWK=.*/AWK=awk/' "${pkgdir}/usr/bin/compile_et"
  45. # remove references to build directory
  46. sed -i -e 's#^SS_DIR=.*#SS_DIR="/usr/share/ss"#' "${pkgdir}/usr/bin/mk_cmds"
  47. sed -i -e 's#^ET_DIR=.*#ET_DIR="/usr/share/et"#' "${pkgdir}/usr/bin/compile_et"
  48. # remove static libraries with a shared counterpart
  49. rm "${pkgdir}"/usr/lib/lib{com_err,e2p,ext2fs,ss}.a
  50. # install MIT license
  51. install -Dm644 "${srcdir}/MIT-LICENSE" \
  52. "${pkgdir}/usr/share/licenses/${pkgname}/MIT-LICENSE"
  53. }