PKGBUILD 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Maintainer (Arch):
  2. # Maintainer: André Silva <emulatorman@hyperbola.info>
  3. pkgname=xfsprogs
  4. pkgver=5.6.0
  5. pkgrel=1
  6. pkgdesc="XFS filesystem utilities"
  7. arch=('i686' 'x86_64')
  8. license=('LGPL-2.1')
  9. url="https://xfs.org/index.php/Main_Page"
  10. groups=('base')
  11. depends=('sh' 'libutil-linux' 'readline' 'icu' 'device-mapper')
  12. makedepends=('gettext-tiny')
  13. options=('!makeflags')
  14. source=("https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-${pkgver}.tar."{xz,sign})
  15. sha512sums=('a6bee55b0a23316c73f3921234d1dbaa4cbe91c12e79264e5f9bfe1356a24baa0ab25270405a46e4613a7e48443ef21997ff4f5962663777bed373f89ca29701'
  16. 'SKIP')
  17. validpgpkeys=('2B8185919E8D248981869DED20AE1692E13DDEE0') # Eric R. Sandeen
  18. build() {
  19. cd ${pkgname}-${pkgver}
  20. make configure
  21. export OPTIMIZER="-march=${CARCH/_/-} -O1"
  22. export DEBUG=-DNDEBUG
  23. ./configure --prefix=/usr --enable-readline
  24. make
  25. }
  26. package() {
  27. cd ${pkgname}-${pkgver}
  28. make DIST_ROOT="${pkgdir}" install install-dev
  29. rm -rf ${pkgdir}/usr/lib
  30. install -Dm644 LICENSES/LGPL-2.1 "${pkgdir}/usr/share/licenses/${pkgname}/LGPL-2.1"
  31. }