PKGBUILD 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
  3. # Contributor: Omar Vega Ramos <ovruni@gnu.org.pe>
  4. # Maintainer (Artix): artoo <artoo@artixlinux.org>
  5. # Contributor (Artix): Alexey D. <lq07829icatm@rambler.ru>
  6. # Contributor (Artix): Ivailo Monev <xakepa10@gmail.com>
  7. _udev_ver=243
  8. pkgbase=eudev
  9. pkgname=('eudev' 'eudev-libudev')
  10. pkgver=3.2.9
  11. pkgrel=1
  12. pkgdesc="The userspace dev tools (udev) forked by Gentoo"
  13. arch=('x86_64' 'i686' 'armv7h')
  14. url="http://www.gentoo.org/proj/en/eudev/"
  15. license=('GPL')
  16. makedepends=('gobject-introspection' 'gperf' 'gtk-doc' 'intltool' 'kmod' 'util-linux' 'libelf')
  17. options=('!libtool')
  18. source=("$pkgname-$pkgver.tar.gz::https://github.com/gentoo/eudev/archive/v${pkgver}.tar.gz"
  19. 'initcpio_hooks'
  20. 'initcpio_install'
  21. '30-udev-hwdb.hook'
  22. '30-udev-reload.hook'
  23. 'udev-hook'
  24. 'udev-hwdb-path.patch'
  25. 'udev-default-rules.patch')
  26. sha256sums=('7d281276b480da3935d1acb239748c2c9db01a8043aad7e918ce57a223d8cd24'
  27. '892ce43218e0a458981bbce451252c8987dc398e60b8de288e7542b8f2409c13'
  28. '77dd1fd318b4456409aceb077f060b87944defb07cf39d29ad1968dc6f361875'
  29. '2782bd3a7686596e98bd2d3fdef9d59d7d439682b87bbcc43b1fd1f5fabb3505'
  30. '13596caef6ed85b58de674ebe7c47d9c7dd676240de5cc28ef3ccee2ce1d8a90'
  31. '80c8f87549374d3bc7c2831b9e069b0005cc5ef90122c2d02e78e27c9bc1dbed'
  32. 'e05e468d15d09fb49343f33bc8d21c08f54db3ecff412dc35d4acb0630f869a3'
  33. '13c167e448411b53b18532469e783e2e51a4c46ff4cf9c46e0481d6440b53f8d')
  34. prepare(){
  35. cd "${pkgbase}-${pkgver}"
  36. patch -Np 1 -i ${srcdir}/udev-hwdb-path.patch
  37. patch -Np 1 -i ${srcdir}/udev-default-rules.patch
  38. ./autogen.sh
  39. }
  40. build() {
  41. cd "${pkgbase}-${pkgver}"
  42. ./configure \
  43. --prefix=/usr \
  44. --with-rootprefix=/usr \
  45. --sysconfdir=/etc \
  46. --libdir=/usr/lib \
  47. --sbindir=/usr/bin \
  48. --enable-introspection \
  49. --enable-kmod \
  50. --enable-manpages \
  51. --enable-split-usr
  52. make
  53. }
  54. check(){
  55. cd "${pkgbase}-${pkgver}"
  56. make -k check
  57. }
  58. package_eudev() {
  59. provides=("udev=${_udev_ver}" )
  60. depends=("eudev-libudev=$pkgver" 'kbd' 'kmod' 'hwids' 'util-linux')
  61. backup=('etc/udev/udev.conf')
  62. cd "${pkgbase}-${pkgver}"
  63. make DESTDIR="${pkgdir}" install
  64. install -dm755 ${srcdir}/_libeudev
  65. mv -v ${pkgdir}/usr/lib/libudev*.so* ${srcdir}/_libeudev
  66. install -Dm644 "${srcdir}/initcpio_hooks" "${pkgdir}/usr/lib/initcpio/hooks/udev"
  67. install -Dm644 "${srcdir}/initcpio_install" "${pkgdir}/usr/lib/initcpio/install/udev"
  68. # pacman hooks
  69. install -Dm755 ${srcdir}/udev-hook "$pkgdir"/usr/share/libalpm/scripts/udev-hook
  70. install -Dm644 -t "$pkgdir"/usr/share/libalpm/hooks ${srcdir}/*.hook
  71. }
  72. package_eudev-libudev() {
  73. pkgdesc="eudev client libraries"
  74. depends=('glibc' 'libelf')
  75. provides=("libudev=${_udev_ver}" 'libudev.so')
  76. provides+=("libeudev=$pkgver")
  77. conflicts+=('libeudev')
  78. replaces+=('libeudev')
  79. install -dm755 ${pkgdir}/usr/lib
  80. mv -v ${srcdir}/_libeudev/libudev*.so* ${pkgdir}/usr/lib
  81. }