mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
60 lines
2.4 KiB
Bash
60 lines
2.4 KiB
Bash
# $Id: PKGBUILD 41787 2009-06-07 11:37:55Z thomas $
|
|
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
pkgname=klibc-udev
|
|
pkgver=141
|
|
pkgrel=1
|
|
pkgdesc="udev compiled for klibc"
|
|
arch=(arm)
|
|
url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
|
|
groups=('base')
|
|
depends=('coreutils' 'klibc' $(basename /lib/klibc-*.so .so))
|
|
license=('GPL')
|
|
source=(http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-$pkgver.tar.bz2
|
|
udev-fix-klibc-build.patch
|
|
disable-uid-gid-lookup.patch
|
|
udev_hook
|
|
udev_install
|
|
50-udev-default.rules
|
|
60-persistent-storage.rules
|
|
64-device-mapper.rules
|
|
64-md-raid.rules
|
|
80-drivers.rules
|
|
load-modules.sh)
|
|
|
|
md5sums=('1670fe81cabf5161319c52084cf81134'
|
|
'c769a0440fc90ba0fee7a2ae2bf7d76f'
|
|
'89acd170a2771f81ca9e4b7920820555'
|
|
'042fd2ba6a0351bbae30da33ff492c03'
|
|
'a3d81917e2bbe66f6c24486a86d4dc9c'
|
|
'f9095dbad80fc93bcde60d7fe4572022'
|
|
'a867d20f660aec148d9b735b209696a1'
|
|
'258fea1c2b024f9755f905a21bd45a01'
|
|
'e8654c58b83cb4eabf6a1c84b7410d78'
|
|
'd42740d13b6bb5c5d90bfc2062019f58'
|
|
'5dd248da5d5fa3adfbe87309807ab734')
|
|
|
|
build() {
|
|
cd ${srcdir}/udev-$pkgver
|
|
patch -p1 -i ../udev-fix-klibc-build.patch || return 1
|
|
# uid/gid lookup fails to build on klibc due to incomplete headers
|
|
# we don't use this feature in klibc, simply omit it
|
|
patch -p1 -i ../disable-uid-gid-lookup.patch || return 1
|
|
|
|
CC=klcc LD=klcc ./configure --prefix=""
|
|
make || return 1
|
|
|
|
mkdir -p ${pkgdir}/lib/initcpio/udev
|
|
install -m755 udev/udevd ${pkgdir}/lib/initcpio/udev/ || return 1
|
|
install -m755 udev/udevadm ${pkgdir}/lib/initcpio/udev/ || return 1
|
|
install -m755 extras/path_id/path_id ${pkgdir}/lib/initcpio/udev/ || return 1
|
|
install -m755 extras/volume_id/vol_id ${pkgdir}/lib/initcpio/udev/ || return 1
|
|
install -m755 extras/firmware/firmware.sh ${pkgdir}/lib/initcpio/udev/ || return 1
|
|
for rules in 50-udev-default.rules 60-persistent-storage.rules 64-device-mapper.rules 64-md-raid.rules 80-drivers.rules; do
|
|
install -m644 ${srcdir}/${rules} ${pkgdir}/lib/initcpio/udev/ || return 1
|
|
done
|
|
install -m755 ${srcdir}/load-modules.sh ${pkgdir}/lib/initcpio/udev/ || return 1
|
|
|
|
install -D -m644 ${srcdir}/udev_install ${pkgdir}/lib/initcpio/install/udev || return 1
|
|
install -D -m644 ${srcdir}/udev_hook ${pkgdir}/lib/initcpio/hooks/udev || return 1
|
|
}
|