PKGBUILD 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Maintainer (Arch): Balló György <ballogyor+arch at gmail dot com>
  2. # Contributor (Arch): Stefano Facchini <stefano.facchini@gmail.com>
  3. # Maintainer (Hyperbola): André Silva <emulatorman@hyperbola.info>
  4. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  5. # Contributor: Daniel Milewski <niitotantei@gmail.com>
  6. _pkgname=libosinfo-libre
  7. pkgname=libosinfo
  8. pkgver=1.4.0
  9. pkgrel=2
  10. pkgrel+=.par1
  11. pkgdesc="GObject based library API for managing information about operating systems, hypervisors and the (virtual) hardware devices they can support"
  12. pkgdesc+=", without non-FSDG compliant distros and operating systems support"
  13. arch=('x86_64')
  14. arch+=('i686' 'armv7h')
  15. url="https://libosinfo.org/"
  16. license=('GPL' 'LGPL')
  17. depends=('glib2' 'libxslt' 'osinfo-db')
  18. makedepends=('check' 'gobject-introspection' 'intltool' 'libsoup' 'vala' 'gtk-doc')
  19. conflicts=(${pkgname}-libre)
  20. replaces=(${pkgname}-libre)
  21. mksource=(https://releases.pagure.org/libosinfo/$pkgname-$pkgver.tar.gz{,.asc})
  22. source=(https://repo.parabola.nu/other/${_pkgname}/${_pkgname}-$pkgver.tar.gz
  23. 0001-media-Fix-usage-of-application-id.patch
  24. 0002-loader-Properly-load-the-arch-value-for-images.patch
  25. libre.patch)
  26. validpgpkeys=('DAF3A6FDB26B62912D0E8E3FBE86EBB415104FDF' # Daniel P. Berrange
  27. '09B9C8FF223EF113AFA06A39EE926C2BDACC177B') # Fabiano Fidêncio <fidencio@redhat.com>
  28. mksha256sums=('a29e61a82b1a5727b145403914812273dfa033a0c07a15500078726bb3b84165'
  29. 'SKIP')
  30. sha256sums=('27efec42a2a2e3ae8b1f6ffcc541aded8b90c06cfbe778b8948f7c0896409eda'
  31. '439e2cf620560cb116d0c08201282c0e152b46b2ab1fa4abcd7e717a2d45dec7'
  32. '80c7583882a935658b9f9409cf5beeb36f46c873bb9041bcc858aca4e2fa7741'
  33. '896216d2f132ff772b3c0cd9e18aa6c45aca2365767fc0c3aa98e8d3a21ca063')
  34. mksource() {
  35. cd $pkgname-$pkgver
  36. rm -rv {docs,tests/isodata/*}
  37. }
  38. prepare() {
  39. cd $pkgname-$pkgver
  40. sed -i '/export LC_ALL = C/d' maint.mk
  41. # Upsteam fixes
  42. patch -Np1 -i ../0001-media-Fix-usage-of-application-id.patch
  43. patch -Np1 -i ../0002-loader-Properly-load-the-arch-value-for-images.patch
  44. # rm -rv {docs,tests/isodata/*}
  45. patch -Np1 -i ../libre.patch
  46. cd po
  47. for file in *.po; do
  48. intltool-update ${file%.*}
  49. msgattrib --no-obsolete -o $file $file
  50. done
  51. }
  52. build() {
  53. cd $pkgname-$pkgver
  54. ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
  55. --with-usb-ids-path=/usr/share/hwdata/usb.ids \
  56. --with-pci-ids-path=/usr/share/hwdata/pci.ids \
  57. --enable-gtk-doc
  58. make
  59. }
  60. check() {
  61. cd $pkgname-$pkgver
  62. make check || :
  63. }
  64. package() {
  65. cd $pkgname-$pkgver
  66. make DESTDIR="$pkgdir" install
  67. }