Advertisement
Guest User

Untitled

a guest
Apr 10th, 2016
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
  2. # Contributor: jdarch <jda.cloud+archlinux@gmail.com>
  3. # Contributor: TheKillerremijn <nick.remijn@gmail.com>
  4.  
  5. pkgname=lib32-libudev0
  6. pkgver=182
  7. pkgrel=1
  8. pkgdesc='Dynamic library to access udev device information (legacy)'
  9. arch=('i686' 'x86_64')
  10. url='https://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/udev.html'
  11. license=('GPL')
  12. depends=('lib32-glibc')
  13. makedepends=('gcc-multilib' 'gperf' 'lib32-kmod' 'lib32-util-linux' 'usbutils')
  14. source=("https://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-${pkgver}.tar.xz")
  15. sha256sums=('adb8892f3b8e4b7163703ed4a545774721a3d55a1062de001f08c477c03d97ab')
  16.  
  17. prepare() {
  18. cd udev-${pkgver}
  19.  
  20. autoreconf -fi
  21. }
  22.  
  23. build() {
  24. cd udev-${pkgver}
  25.  
  26. export CC='gcc -m32'
  27. export CXX='g++ -m32'
  28. export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
  29.  
  30. sed -i 's:input.h:input-event-codes.h:' Makefile.in
  31. sed -i '20a#include <stdint.h>' src/mtd_probe/mtd_probe.h
  32.  
  33. ./configure \
  34. --prefix='/usr' \
  35. --libdir='/usr/lib32' \
  36. --libexecdir='/usr/lib32/udev' \
  37. --sysconfdir='/etc' \
  38. --disable-gudev \
  39. --disable-introspection \
  40. --with-systemdsystemunitdir='/usr/lib32/systemd/system'
  41. make LIBS='-lrt'
  42. }
  43.  
  44. package() {
  45. cd udev-${pkgver}
  46.  
  47. make DESTDIR="${pkgdir}" install
  48. rm -rf "${pkgdir}"/{etc,usr/{bin,include,lib32/{libudev.so,pkgconfig,udev,systemd},share}}
  49. }
  50.  
  51. # vim: ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement