2015-06-24 09:10:28 +00:00
|
|
|
# Maintainer: fbt <fbt@fleshless.org>
|
|
|
|
# Contributor: artoo <artoo@manjaro.org>
|
2015-06-01 13:15:16 +00:00
|
|
|
# Contributor: Alexey D. <lq07829icatm@rambler.ru>
|
|
|
|
# Contributor: Ivailo Monev <xakepa10@gmail.com>
|
|
|
|
|
2018-12-24 19:06:12 +00:00
|
|
|
_udev_ver=239
|
2015-06-01 13:15:16 +00:00
|
|
|
|
2018-12-24 19:06:12 +00:00
|
|
|
pkgname=('eudev' 'libeudev')
|
2020-05-14 22:29:55 +00:00
|
|
|
pkgver=3.2.9
|
|
|
|
pkgrel=1
|
2015-06-01 13:15:16 +00:00
|
|
|
pkgdesc="The userspace dev tools (udev) forked by Gentoo"
|
|
|
|
arch=('i686' 'x86_64')
|
2016-08-30 19:42:14 +00:00
|
|
|
url="https://github.com/gentoo/eudev"
|
2015-06-01 13:15:16 +00:00
|
|
|
license=('GPL')
|
2016-08-30 19:44:35 +00:00
|
|
|
makedepends=('gobject-introspection' 'gperf' 'gtk-doc' 'intltool' 'kmod')
|
2018-01-18 09:45:19 +00:00
|
|
|
options=( '!libtool' '!staticlibs')
|
|
|
|
|
|
|
|
source=(
|
|
|
|
"$pkgname-$pkgver.tar.gz::https://github.com/gentoo/eudev/archive/v${pkgver}.tar.gz"
|
2015-06-01 13:15:16 +00:00
|
|
|
'initcpio_hooks'
|
2018-01-18 09:45:19 +00:00
|
|
|
'initcpio_install'
|
|
|
|
'udev-hwdb.hook'
|
|
|
|
)
|
|
|
|
|
|
|
|
prepare(){
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
sed -e 's/GROUP="dialout"/GROUP="uucp"/' \
|
|
|
|
-e 's/GROUP="tape"/GROUP="storage"/' \
|
|
|
|
-e 's/GROUP="cdrom"/GROUP="optical"/' \
|
|
|
|
-i rules/*.rules
|
|
|
|
}
|
2015-06-01 13:15:16 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2018-01-18 09:45:19 +00:00
|
|
|
./autogen.sh
|
2015-06-01 13:15:16 +00:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-rootprefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--sbindir=/usr/bin \
|
|
|
|
--enable-introspection \
|
|
|
|
--enable-kmod \
|
2018-01-18 09:45:19 +00:00
|
|
|
--enable-manpages \
|
2015-06-01 13:15:16 +00:00
|
|
|
--enable-split-usr
|
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package_eudev() {
|
|
|
|
pkgdesc="The userspace dev tools (udev) forked by Gentoo"
|
2018-07-28 15:49:30 +00:00
|
|
|
provides=( "udev=${_udev_ver}" )
|
2015-06-01 13:15:16 +00:00
|
|
|
backup=( 'etc/udev/udev.conf' )
|
|
|
|
depends=(
|
|
|
|
'kbd'
|
|
|
|
'kmod'
|
|
|
|
'hwids'
|
|
|
|
'util-linux'
|
2015-08-08 16:43:38 +00:00
|
|
|
'libeudev'
|
2015-06-01 13:15:16 +00:00
|
|
|
)
|
2018-01-18 09:45:19 +00:00
|
|
|
|
2015-06-01 13:15:16 +00:00
|
|
|
optdepends=(
|
2018-01-18 09:45:19 +00:00
|
|
|
'libsystemd-standalone: to run packages built against systemd'
|
2015-06-01 13:15:16 +00:00
|
|
|
'upower-pm-utils: pm-utils support'
|
|
|
|
)
|
|
|
|
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
2018-01-18 09:45:19 +00:00
|
|
|
# initramfs hooks
|
|
|
|
install -Dm644 "$srcdir/initcpio_hooks" "$pkgdir/usr/lib/initcpio/hooks/udev"
|
|
|
|
install -Dm644 "$srcdir/initcpio_install" "$pkgdir/usr/lib/initcpio/install/udev"
|
|
|
|
install -Dm644 "$srcdir/udev-hwdb.hook" "$pkgdir/usr/share/libalpm/hooks/udev-hwdb.hook"
|
2015-06-01 13:15:16 +00:00
|
|
|
|
2020-05-13 11:37:42 +00:00
|
|
|
# Make network interface name randomization be optional, not the default
|
|
|
|
sed -i 's/=="0"/!="1"/g' "$pkgdir/usr/lib/udev/rules.d/80-net-name-slot.rules"
|
|
|
|
|
2018-01-18 09:45:19 +00:00
|
|
|
# These go into a separate package
|
|
|
|
rm -rv "$pkgdir"/usr/lib/pkgconfig
|
|
|
|
rm -v "$pkgdir"/usr/include/libudev.h
|
|
|
|
rm -v "$pkgdir"/usr/lib/libudev*.{so*,a}
|
2015-06-01 13:15:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_libeudev() {
|
|
|
|
pkgdesc="eudev client libraries"
|
|
|
|
depends=( 'glibc' 'glib2' )
|
2018-01-18 09:45:19 +00:00
|
|
|
conflicts=( 'libudev.so' )
|
2015-06-01 13:15:16 +00:00
|
|
|
provides=(
|
2018-01-18 09:45:19 +00:00
|
|
|
"libudev=$_udev_ver"
|
2015-06-01 13:15:16 +00:00
|
|
|
'libudev.so'
|
|
|
|
)
|
|
|
|
|
2018-01-18 09:45:19 +00:00
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
make -C src/libudev DESTDIR="$pkgdir" install
|
2015-06-01 13:15:16 +00:00
|
|
|
}
|
2019-06-09 11:57:17 +00:00
|
|
|
|
2020-05-14 22:29:55 +00:00
|
|
|
sha1sums=('0648c6e104057fc074a80a742d316cd0b6bee949'
|
2015-06-12 14:34:58 +00:00
|
|
|
'defa489254f38e57723a8ff70654f29e47bd448a'
|
2018-01-18 09:45:19 +00:00
|
|
|
'a6a6ee5c751fb92e2c79e0a297e4c318c8f6bb75'
|
|
|
|
'6cdf611d37604062ae4c380307421cef6fde445d')
|