Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
- # Contributor: jdarch <jda.cloud+archlinux@gmail.com>
- # Contributor: TheKillerremijn <nick.remijn@gmail.com>
- pkgname=lib32-libudev0
- pkgver=182
- pkgrel=1
- pkgdesc='Dynamic library to access udev device information (legacy)'
- arch=('i686' 'x86_64')
- url='https://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/udev.html'
- license=('GPL')
- depends=('lib32-glibc')
- makedepends=('gcc-multilib' 'gperf' 'lib32-kmod' 'lib32-util-linux' 'usbutils')
- source=("https://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-${pkgver}.tar.xz")
- sha256sums=('adb8892f3b8e4b7163703ed4a545774721a3d55a1062de001f08c477c03d97ab')
- prepare() {
- cd udev-${pkgver}
- autoreconf -fi
- }
- build() {
- cd udev-${pkgver}
- export CC='gcc -m32'
- export CXX='g++ -m32'
- export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
- sed -i 's:input.h:input-event-codes.h:' Makefile.in
- sed -i '20a#include <stdint.h>' src/mtd_probe/mtd_probe.h
- ./configure \
- --prefix='/usr' \
- --libdir='/usr/lib32' \
- --libexecdir='/usr/lib32/udev' \
- --sysconfdir='/etc' \
- --disable-gudev \
- --disable-introspection \
- --with-systemdsystemunitdir='/usr/lib32/systemd/system'
- make LIBS='-lrt'
- }
- package() {
- cd udev-${pkgver}
- make DESTDIR="${pkgdir}" install
- rm -rf "${pkgdir}"/{etc,usr/{bin,include,lib32/{libudev.so,pkgconfig,udev,systemd},share}}
- }
- # vim: ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement