121 lines
4 KiB
Bash
121 lines
4 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgbase=eudev
|
|
pkgname=(eudev libeudev)
|
|
pkgver=3.2.14
|
|
pkgrel=03
|
|
_udev_ver=251
|
|
pkgdesc="The userspace dev tools (udev) - patched as udev-251"
|
|
# This is the old official gentoo fork source location
|
|
#url="https://github.com/gentoo/eudev"
|
|
#url="https://github.com/eudev-project/eudev/releases/download/v3.2.12-pre3/eudev-3.2.12-pre3.tar.gz
|
|
#source=("git+https://anongit.gentoo.org/git/proj/eudev.git"
|
|
url="https://github.com/eudev-project/eudev/releases/download"
|
|
source=($url/v$pkgver/$pkgbase-$pkgver.tar.gz{,.asc}
|
|
initcpio_hooks
|
|
initcpio_install
|
|
udev-hwdb.hook )
|
|
groups=('base')
|
|
makedepends=( gobject-introspection gperf gtk-doc intltool kmod gawk gcc glib2 libxslt libtool m4 make sed util-linux) # autoconf automake linux-lts-headers -- used before by Obarun
|
|
options=( !staticlibs !libtool)
|
|
|
|
prepare(){
|
|
cd $pkgbase-$pkgver
|
|
|
|
sed -e 's/GROUP="dialout"/GROUP="uucp"/' \
|
|
-e 's/GROUP="tape"/GROUP="storage"/' \
|
|
-e 's/GROUP="cdrom"/GROUP="optical"/' \
|
|
-i rules/*.rules
|
|
|
|
## for historic background patch incorporated into code now
|
|
## https://github.com/orbea/gentoo/blob/089352efcf0f31fc0d9829976bad2ae3049d031c/sys-fs/eudev/files/eudev-3.2.12-sticky-tags.patch
|
|
## https://github.com/KenjiBrown/without-systemd/commit/2b6f3b42897f2d1d71afa3f2ada60f2b22db449f#diff-22b39d4a24ab8aeca2a195b4f97229cd70df46cd88f1bfb4afd1c14d8a163a8e
|
|
## patch -Np1 < ../eudev-3.2.12-sticky-tags.patch
|
|
|
|
}
|
|
|
|
build() {
|
|
cd $pkgbase-$pkgver
|
|
./configure \
|
|
--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
|
|
|
|
if [ -f "Makefile" ];then
|
|
msg2 "Cleaning up..."
|
|
make clean
|
|
fi
|
|
make
|
|
}
|
|
|
|
package_eudev() {
|
|
pkgdesc="The userspace dev tools (udev)"
|
|
backup=(
|
|
'etc/udev/udev.conf'
|
|
'usr/lib/udev/rules.d/80-net-name-slot.rules'
|
|
)
|
|
depends=(libeudev kbd kmod hwdata util-linux)
|
|
|
|
optdepends=(
|
|
'upower-pm-utils: pm-utils support'
|
|
'libgudev: GObject bindings for libudev'
|
|
)
|
|
|
|
provides=("udev=${_udev_ver}" "eudev")
|
|
conflicts=(eudev-git udev eudev-libgudev)
|
|
replaces=(udev smdev nldev)
|
|
|
|
cd $pkgbase-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
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="The userspace dev tools library (libudev)"
|
|
depends=(glib2 glibc)
|
|
conflicts=('libudev.so' 'libeudev-git' 'libudev-zero')
|
|
replaces=('libudev-zero' 'libudev')
|
|
provides=("libudev=${_udev_ver}" 'libudev.so')
|
|
|
|
cd $pkgbase-$pkgver
|
|
|
|
make -C src/libudev DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(GPL)
|
|
|
|
validpgpkeys=('BA60BC20F37E59444D6D25001365720913D2F22D') # Boian Bonev (GnuPG Release Key) <bbonev@ipacct.com>
|
|
|
|
sha256sums=(8da4319102f24abbf7fff5ce9c416af848df163b29590e666d334cc1927f006f # eudev-3.2.14.tar.gz
|
|
515f81eb968c7580fdea3023dee5e1e136aeb77fbef4e8a86ad76b933b1cf722 # eudev-3.2.14.tar.gz.asc
|
|
692cc489cc65216892099a40fa55ab22f52f169f2f264727dce83ff39f8ef3bd # initcpio_hooks
|
|
65424f841d5802d00507a5a82fc51b5b8e8d24a1576c605947efd653ee6fc34a # initcpio_install
|
|
846e9ddbb95c8394ba7efe75107cc1308426921bc042f5d6b48fa4c2dcbac151) # udev-hwdb.hook
|
|
|
|
## 2e30d15737adfd5ce07ce5d6e0a1930b9616f7a53bc82bebd5f7caa0813781e9 eudev-3.2.14-03-x86_64.pkg.tar.lz
|
|
## c9d40aa80f3f03d9a7ccba3e2c2f6a658224bef6ba7bc11c421b20f42f00105d libeudev-3.2.14-03-x86_64.pkg.tar.lz
|
|
|