You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PKGBUILD 2.8KB

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