PKGBUILD 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Maintainer (Arch): Sébastien "Seblu" Luttringer <seblu@archlinux.org>
  2. # Contributor (Arch): Tom Gundersen <teg@jklm.no>
  3. # Contributor (Arch): Tobias Powalowski <tpowa@archlinux.org>
  4. # Maintainer: André Silva <emulatorman@hyperbola.info>
  5. # Contributor: Márcio Silva <coadde@hyperbola.info>
  6. # Contributor: Tobias Dausend <throgh@hyperbola.info>
  7. pkgname=btrfs-progs
  8. pkgver=5.9
  9. pkgrel=4
  10. pkgdesc="Btrfs filesystem utilities"
  11. license=('GPL-2')
  12. arch=('i686' 'x86_64')
  13. url='https://btrfs.wiki.kernel.org'
  14. replaces=('btrfs-progs-unstable')
  15. conflicts=('btrfs-progs-unstable')
  16. provides=('btrfs-progs-unstable')
  17. depends=('e2fsprogs' 'lzo')
  18. makedepends=('asciidoc' 'xmlto' 'python-setuptools')
  19. optdepends=('python: libbtrfsutil python bindings')
  20. source=(https://www.kernel.org/pub/linux/kernel/people/kdave/${pkgname}/${pkgname}-v${pkgver}.tar.{xz,sign}
  21. initcpio-install-btrfs
  22. initcpio-hook-btrfs)
  23. install="${pkgname}.install"
  24. options=('!staticlibs')
  25. sha512sums=('38db047198ab0467d3fe235f7e8e1fd14ade00dd0b182588220c5f5e4b598efbdcd30a3d5d56cf0a0ed8a902d2374af0927eb7f3720cd761172c7291a2a65c94'
  26. 'SKIP'
  27. 'c0222069e1b8f0a31e8752d986b3f3d710b923cd0d9045ef9e762e8555c771667f1e6cbe71bc4e5b78cb1570f96402e3d545a8192343486d53469a9ec634700e'
  28. '2cd4df9154555d5ffaf5279b5d730659fe1f15cf103fc222303f5fec14d8ccf7ac97cb88a826e0b43f466f779ecb49f562b7ac6425734b7e5cb8ff691480aa6c')
  29. validpgpkeys=('F2B41200C54EFB30380C1756C565D5F9D76D583B') # David Sterba <dsterba@suse.cz>
  30. build() {
  31. cd "${srcdir}/${pkgname}-v${pkgver}"
  32. ./configure \
  33. --prefix=/usr \
  34. --bindir=/sbin \
  35. --disable-zstd
  36. make
  37. }
  38. check() {
  39. cd "${srcdir}/${pkgname}-v${pkgver}"
  40. ./btrfs filesystem show
  41. }
  42. package() {
  43. cd "${srcdir}/${pkgname}-v${pkgver}"
  44. make DESTDIR="${pkgdir}" 'install' 'install_python'
  45. # install license
  46. install -Dm '644' 'COPYING' -t "${pkgdir}/usr/share/licenses/${pkgname}"
  47. # install bash completion (FS#44618)
  48. install -Dm '644' 'btrfs-completion' \
  49. "${pkgdir}/usr/share/bash-completion/completions/btrfs"
  50. # install mkinitcpio hooks
  51. install -Dm '644' "${srcdir}/initcpio-install-btrfs" \
  52. "${pkgdir}/lib/initcpio/install/btrfs"
  53. install -Dm '644' "${srcdir}/initcpio-hook-btrfs" \
  54. "${pkgdir}/lib/initcpio/hooks/btrfs"
  55. }