2022-03-20 13:19:37 +01:00
|
|
|
# Copyright : Obarun
|
|
|
|
#------------------------
|
|
|
|
# Maintainer : Eric Vidal <eric@obarun.org>
|
|
|
|
# Maintainer : Jean-Michel T.Dydak <jean-michel@obarun.org>
|
|
|
|
#----------------
|
|
|
|
# Obarun PkgSrc : https://git.obarun.org/pkg/obcore/eudev
|
|
|
|
#--------------------------------------------------------------
|
|
|
|
# DESCRIPTION ]
|
|
|
|
|
|
|
|
pkgbase=eudev
|
2023-03-29 03:54:20 +02:00
|
|
|
pkgver=3.2.12.pre3
|
|
|
|
_ver=3.2.12-pre3
|
|
|
|
pkgrel=1
|
|
|
|
# version can be found at configure.ac UDEV_VERSION
|
2022-03-20 13:19:37 +01:00
|
|
|
udevver=243
|
|
|
|
url="https://github.com/eudev-project/eudev"
|
|
|
|
|
|
|
|
pkgname=(
|
|
|
|
'eudev'
|
|
|
|
'libeudev'
|
|
|
|
)
|
|
|
|
|
2023-03-29 03:54:20 +02:00
|
|
|
track="eudev/releases/download/v$_ver"
|
|
|
|
target="eudev-$_ver"
|
2022-03-20 13:19:37 +01:00
|
|
|
source=(
|
|
|
|
"https://github.com/eudev-project/${track}/${target}.tar.gz"
|
|
|
|
initcpio_hooks
|
|
|
|
initcpio_install
|
|
|
|
udev-hwdb.hook
|
|
|
|
)
|
|
|
|
|
|
|
|
#----------------------
|
|
|
|
# BUILD CONFIGURATION ]
|
|
|
|
|
|
|
|
makedepends=(
|
|
|
|
'gobject-introspection'
|
|
|
|
'gperf'
|
|
|
|
'gtk-doc'
|
|
|
|
'intltool'
|
|
|
|
'kmod'
|
|
|
|
)
|
|
|
|
|
|
|
|
options=(
|
|
|
|
'!makeflags'
|
|
|
|
'!libtool'
|
|
|
|
)
|
|
|
|
|
|
|
|
#----------------
|
|
|
|
# BUILD PREPARE ]
|
|
|
|
|
|
|
|
prepare(){
|
2023-03-29 03:54:20 +02:00
|
|
|
cd $pkgbase-$_ver
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
sed -e 's/GROUP="dialout"/GROUP="uucp"/' \
|
|
|
|
-e 's/GROUP="tape"/GROUP="storage"/' \
|
|
|
|
-e 's/GROUP="cdrom"/GROUP="optical"/' \
|
|
|
|
-i rules/*.rules
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------
|
|
|
|
# BUILD CONTROL ]
|
|
|
|
|
|
|
|
_flags=(
|
|
|
|
--prefix=/usr
|
|
|
|
--with-rootprefix=/usr
|
|
|
|
--sysconfdir=/etc
|
|
|
|
--libdir=/usr/lib
|
|
|
|
--bindir=/usr/bin
|
|
|
|
--sbindir=/usr/bin
|
|
|
|
--enable-introspection
|
|
|
|
--enable-kmod
|
|
|
|
--enable-manpages
|
|
|
|
--enable-split-usr
|
|
|
|
)
|
|
|
|
|
|
|
|
#--------
|
|
|
|
# BUILD ]
|
|
|
|
|
|
|
|
build() {
|
2023-03-29 03:54:20 +02:00
|
|
|
cd $pkgbase-$_ver
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
if [ -f "Makefile" ];then
|
|
|
|
msg2 "Cleaning up..."
|
|
|
|
make clean
|
|
|
|
fi
|
|
|
|
|
|
|
|
./configure "${_flags[@]}"
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------
|
|
|
|
# PACKAGE ]
|
|
|
|
|
|
|
|
package_eudev() {
|
|
|
|
pkgdesc="The userspace dev tools (udev) forked by Gentoo"
|
|
|
|
backup=(
|
|
|
|
'etc/udev/udev.conf'
|
|
|
|
'usr/lib/udev/rules.d/80-net-name-slot.rules'
|
|
|
|
)
|
|
|
|
depends=(
|
|
|
|
'kbd'
|
|
|
|
'kmod'
|
2022-10-29 20:07:11 +02:00
|
|
|
'hwdata'
|
2022-03-20 13:19:37 +01:00
|
|
|
'util-linux'
|
|
|
|
'libeudev'
|
|
|
|
)
|
|
|
|
optdepends=(
|
|
|
|
'upower-pm-utils: pm-utils support'
|
|
|
|
'libgudev: GObject bindings for libudev'
|
|
|
|
)
|
|
|
|
conflicts=(
|
|
|
|
'eudev-git'
|
|
|
|
'udev'
|
|
|
|
'eudev-libgudev'
|
|
|
|
)
|
|
|
|
replaces=(
|
|
|
|
'udev'
|
|
|
|
)
|
|
|
|
provides=(
|
|
|
|
"udev=$udevver"
|
|
|
|
)
|
|
|
|
|
2023-03-29 03:54:20 +02:00
|
|
|
cd $pkgbase-$_ver
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
## we split this libudev
|
|
|
|
rm -rv "$pkgdir"/usr/lib/pkgconfig
|
|
|
|
rm -v "$pkgdir"/usr/include/libudev.h
|
|
|
|
rm -v "$pkgdir"/usr/lib/libudev*.{so*,a}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
package_libeudev() {
|
|
|
|
pkgdesc="Eudev client libraries"
|
|
|
|
depends=(
|
|
|
|
'glib2'
|
|
|
|
'glibc'
|
|
|
|
)
|
|
|
|
provides=(
|
|
|
|
"libudev=$udevver"
|
|
|
|
'libudev.so'
|
|
|
|
)
|
|
|
|
|
2023-03-29 03:54:20 +02:00
|
|
|
cd $pkgbase-$_ver
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
make -C src/libudev DESTDIR="$pkgdir" install
|
|
|
|
}
|
|
|
|
|
|
|
|
#--------------------
|
|
|
|
# ARCH LICENSE AUTH ]
|
|
|
|
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(GPL)
|
|
|
|
|
2023-03-29 03:54:20 +02:00
|
|
|
sha256sums=('abed466623141a8049b50321bce45eeb2345a080945e0ec516031f268a0d8019'
|
|
|
|
'892ce43218e0a458981bbce451252c8987dc398e60b8de288e7542b8f2409c13'
|
|
|
|
'77dd1fd318b4456409aceb077f060b87944defb07cf39d29ad1968dc6f361875'
|
|
|
|
'846e9ddbb95c8394ba7efe75107cc1308426921bc042f5d6b48fa4c2dcbac151')
|