PKGBUILD 841 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. pkgname=xfsprogs
  3. pkgver=4.18.0
  4. pkgrel=1
  5. pkgdesc="XFS filesystem utilities"
  6. arch=('x86_64' 'ppc64le')
  7. license=('LGPL')
  8. url="http://xfs.org"
  9. groups=('base')
  10. depends=('sh' 'libutil-linux' 'readline')
  11. makedepends=('git')
  12. options=('!makeflags')
  13. source=("git+https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git#tag=v${pkgver}")
  14. md5sums=('SKIP')
  15. build() {
  16. cd "${srcdir}/${pkgname}-dev"
  17. make configure
  18. export OPTIMIZER="-mcpu=${CARCH/_/-} -O1"
  19. export DEBUG=-DNDEBUG
  20. ./configure --prefix=/usr --sbindir=/usr/bin --enable-readline
  21. make
  22. }
  23. package() {
  24. cd "${srcdir}/${pkgname}-dev"
  25. make DIST_ROOT="${pkgdir}" PKG_ROOT_SBIN_DIR="/usr/bin" install install-dev
  26. chown -R root $pkgdir
  27. chgrp -R root $pkgdir
  28. # add hack as we cannot set rootlibdir
  29. mv "${pkgdir}"/lib/libhandle.so* "${pkgdir}/usr/lib/"
  30. rm -rf "${pkgdir}/lib"
  31. }