SHOW:
|
|
- or go back to the newest paste.
| 1 | # $Id: PKGBUILD 159356 2012-05-22 12:46:15Z tomegun $ | |
| 2 | # Maintainer: Tom Gundersen <[email protected]> | |
| 3 | # Contributor: Aaron Griffin <[email protected]> | |
| 4 | # Contributor: Tobias Powalowski <[email protected]> | |
| 5 | # Contributor: Thomas BΓ€chler <[email protected]> | |
| 6 | # Contributor: Aline Freitas <[email protected]> | |
| 7 | ||
| 8 | - | pkgname=udev |
| 8 | + | pkgname=udev-fork |
| 9 | _altname=udev | |
| 10 | pkgver=189 | |
| 11 | pkgrel=1 | |
| 12 | pkgdesc="The userspace dev tools (udev)" | |
| 13 | - | provides=('systemd-tools')
|
| 13 | + | |
| 14 | - | replaces=('systemd-tools')
|
| 14 | + | provides=("systemd-tools=$pkgver" "systemd=$pkgver" "udev=$pkgver")
|
| 15 | - | conflicts=('systemd-tools')
|
| 15 | + | conflicts=('systemd-tools' 'systemd' 'udev')
|
| 16 | ||
| 17 | install=udev.install | |
| 18 | arch=(i686 x86_64) | |
| 19 | license=('GPL')
| |
| 20 | makedepends=('gobject-introspection' 'gperf' 'libxslt')
| |
| 21 | - | source=(https://bitbucket.org/braindamaged/udev/downloads/$pkgname-$pkgver.tar.gz |
| 21 | + | source=(https://bitbucket.org/braindamaged/udev/downloads/$_altname-$pkgver.tar.gz |
| 22 | initcpio-hooks-udev | |
| 23 | initcpio-install-udev) | |
| 24 | backup=(etc/udev/udev.conf) | |
| 25 | groups=('base')
| |
| 26 | options=(!makeflags !libtool) | |
| 27 | md5sums=('0fce29b89b700ab5c3f7ed9431d96a31'
| |
| 28 | 'e433c11d38cf4f877b41d06e2753ebe0' | |
| 29 | 'e6faf4c3fe456f10d8efd2487d5e3cb7') | |
| 30 | ||
| 31 | build() {
| |
| 32 | - | cd $srcdir/$pkgname-$pkgver |
| 32 | + | cd $srcdir/$_altname-$pkgver |
| 33 | ||
| 34 | ./configure --prefix=/usr \ | |
| 35 | --sysconfdir=/etc \ | |
| 36 | --libexecdir=/usr/lib \ | |
| 37 | --with-firmware-path=/usr/lib/firmware/updates:/lib/firmware/updates:/usr/lib/firmware:/lib/firmware \ | |
| 38 | --with-usb-ids-path=/usr/share/hwdata/usb.ids \ | |
| 39 | --with-pci-ids-path=/usr/share/hwdata/pci.ids | |
| 40 | ||
| 41 | make | |
| 42 | } | |
| 43 | ||
| 44 | check() {
| |
| 45 | - | make -C "$pkgname-$pkgver" check |
| 45 | + | make -C "$_altname-$pkgver" check |
| 46 | } | |
| 47 | package() {
| |
| 48 | cd $srcdir/$_altname-$pkgver | |
| 49 | - | cd $srcdir/$pkgname-$pkgver |
| 49 | + | |
| 50 | ||
| 51 | # install the mkinitpcio hook | |
| 52 | install -D -m644 ../initcpio-hooks-udev ${pkgdir}/usr/lib/initcpio/hooks/udev
| |
| 53 | install -D -m644 ../initcpio-install-udev ${pkgdir}/usr/lib/initcpio/install/udev
| |
| 54 | ||
| 55 | # udevd moved, symlink to make life easy for restarting udevd manually | |
| 56 | ln -s ../lib/udev/udevd ${pkgdir}/usr/bin/udevd
| |
| 57 | ||
| 58 | # the path to udevadm is hardcoded in some places | |
| 59 | install -d ${pkgdir}/sbin
| |
| 60 | ln -s ../usr/bin/udevadm ${pkgdir}/sbin/udevadm
| |
| 61 | ||
| 62 | # fix wrong path to /bin/sh | |
| 63 | sed -i -e 's#/usr/bin/sh#/bin/sh#g' $pkgdir/usr/lib/udev/keyboard-force-release.sh | |
| 64 | ||
| 65 | # Replace dialout/tape/cdrom group in rules with uucp/storage/optical group | |
| 66 | for i in $pkgdir/usr/lib/udev/rules.d/*.rules; do | |
| 67 | sed -i -e 's#GROUP="dialout"#GROUP="uucp"#g; | |
| 68 | s#GROUP="tape"#GROUP="storage"#g; | |
| 69 | s#GROUP="cdrom"#GROUP="optical"#g' $i | |
| 70 | done | |
| 71 | } |