2022-03-20 13:19:37 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
2022-07-21 13:04:26 +02:00
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
2022-03-20 13:19:37 +01:00
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgbase=eudev
|
|
|
|
pkgname=(eudev libeudev)
|
|
|
|
pkgver=3.2.11
|
|
|
|
pkgrel=03
|
|
|
|
_udev_ver=243
|
|
|
|
|
|
|
|
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')
|
|
|
|
arch=(x86_64)
|
|
|
|
|
|
|
|
pkgname=(eudev libeudev)
|
|
|
|
|
|
|
|
makedepends=(
|
|
|
|
gobject-introspection \
|
|
|
|
gperf \
|
|
|
|
gtk-doc \
|
|
|
|
intltool \
|
|
|
|
kmod \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
gawk \
|
|
|
|
gcc \
|
|
|
|
glib2 \
|
|
|
|
libxslt \
|
|
|
|
libtool \
|
|
|
|
linux-lts-headers \
|
|
|
|
m4 \
|
|
|
|
make \
|
|
|
|
sed \
|
|
|
|
util-linux
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgbase-$pkgver
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-rootprefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--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) forked by Gentoo"
|
|
|
|
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'
|
|
|
|
)
|
|
|
|
|
|
|
|
conflicts=(
|
|
|
|
eudev-git
|
|
|
|
udev
|
|
|
|
eudev-libgudev
|
|
|
|
)
|
|
|
|
replaces=(
|
|
|
|
udev
|
|
|
|
mdevd
|
|
|
|
smdev
|
|
|
|
nldev
|
|
|
|
)
|
|
|
|
provides=(
|
|
|
|
"udev=$_udev_ver"
|
|
|
|
)
|
|
|
|
|
|
|
|
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="Eudev client libraries"
|
|
|
|
depends=(
|
|
|
|
glib2
|
|
|
|
glibc
|
|
|
|
)
|
|
|
|
conflicts=(libudev-zero)
|
|
|
|
replaces=(
|
|
|
|
libudev-zero
|
|
|
|
)
|
|
|
|
|
|
|
|
provides=(
|
|
|
|
"libudev=$_udev_ver"
|
|
|
|
libudev.so
|
|
|
|
)
|
|
|
|
|
|
|
|
cd $pkgbase-$pkgver
|
|
|
|
|
|
|
|
make -C src/libudev DESTDIR="$pkgdir" install
|
|
|
|
}
|
|
|
|
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
|
|
|
|
license=(GPL)
|
|
|
|
|
|
|
|
validpgpkeys=('BA60BC20F37E59444D6D25001365720913D2F22D') # Boian Bonev (GnuPG Release Key) <bbonev@ipacct.com>
|
|
|
|
|
|
|
|
sha256sums=(19847cafec67897da855fde56f9dc7d92e21c50e450aa79068a7e704ed44558b # eudev-3.2.11.tar.gz
|
|
|
|
ae59dba00db3d689a7903c5bb412d75815d89cec5bd4dd8d97938d24c4ecc7ee # eudev-3.2.11.tar.gz.asc
|
|
|
|
892ce43218e0a458981bbce451252c8987dc398e60b8de288e7542b8f2409c13 # initcpio_hooks
|
|
|
|
77dd1fd318b4456409aceb077f060b87944defb07cf39d29ad1968dc6f361875 # initcpio_install
|
|
|
|
846e9ddbb95c8394ba7efe75107cc1308426921bc042f5d6b48fa4c2dcbac151) # udev-hwdb.hook
|