jobcore/eudev/PKGBUILD

116 lines
3.6 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# 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"
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgbase=eudev
pkgname=(eudev libeudev)
2023-08-16 03:24:23 +02:00
pkgver=3.2.12
2023-08-17 22:50:49 +02:00
pkgrel=04 ## correct description of pkg version
2023-08-16 03:24:23 +02:00
_udev_ver=243
2023-08-17 22:50:49 +02:00
pkgdesc="The userspace dev tools (udev) - ex-gentoo forked edition"
# 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"
2022-03-20 13:19:37 +01:00
url="https://github.com/eudev-project/eudev/releases/download"
2023-07-08 00:05:51 +02:00
source=($url/v$pkgver/$pkgbase-$pkgver.tar.gz{,.asc}
2022-03-20 13:19:37 +01:00
initcpio_hooks
initcpio_install
udev-hwdb.hook )
2022-03-20 13:19:37 +01:00
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
2022-03-20 13:19:37 +01:00
options=( !staticlibs !libtool)
prepare(){
2023-07-08 00:05:51 +02:00
cd $pkgbase-$pkgver
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() {
2023-07-08 00:05:51 +02:00
cd $pkgbase-$pkgver
2022-03-20 13:19:37 +01:00
./configure \
--prefix=/usr \
--with-rootprefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib \
--bindir=/usr/bin \
2022-03-20 13:19:37 +01:00
--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) - pre-3.2.12 edition"
2022-03-20 13:19:37 +01:00
backup=(
'etc/udev/udev.conf'
'usr/lib/udev/rules.d/80-net-name-slot.rules'
)
depends=(libeudev kbd kmod hwdata util-linux)
2022-03-20 13:19:37 +01:00
optdepends=(
'upower-pm-utils: pm-utils support'
'libgudev: GObject bindings for libudev'
)
provides=("udev=${_udev_ver}" "eudev")
conflicts=(eudev-git udev eudev-libgudev)
2022-11-15 16:49:16 +01:00
replaces=(udev smdev nldev)
2022-03-20 13:19:37 +01:00
2023-07-08 00:05:51 +02:00
cd $pkgbase-$pkgver
2022-03-20 13:19:37 +01:00
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 - pre 3.2.12 edition"
depends=(glib2 glibc)
conflicts=('libudev.so' 'libeudev-git' 'libudev-zero')
replaces=('libudev-zero' 'libudev')
provides=("libudev=${_udev_ver}" 'libudev.so')
2022-03-20 13:19:37 +01:00
2023-07-08 00:05:51 +02:00
cd $pkgbase-$pkgver
2022-03-20 13:19:37 +01:00
make -C src/libudev DESTDIR="$pkgdir" install
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
2022-03-20 13:19:37 +01:00
license=(GPL)
validpgpkeys=('BA60BC20F37E59444D6D25001365720913D2F22D') # Boian Bonev (GnuPG Release Key) <bbonev@ipacct.com>
2023-07-08 00:05:51 +02:00
sha256sums=(ccdd64ec3c381d3c3ed0e99d2e70d1f62988c7763de89ca7bdffafa5eacb9ad8 # eudev-3.2.12.tar.gz
dcd34d674f98c436a757d335f153a7768eed74a8b7fe7330b03be1164cf590d1 # eudev-3.2.12.tar.gz.asc
892ce43218e0a458981bbce451252c8987dc398e60b8de288e7542b8f2409c13 # initcpio_hooks
77dd1fd318b4456409aceb077f060b87944defb07cf39d29ad1968dc6f361875 # initcpio_install
846e9ddbb95c8394ba7efe75107cc1308426921bc042f5d6b48fa4c2dcbac151) # udev-hwdb.hook
2023-08-17 22:50:49 +02:00
## 8dc2da97cd9ba67d24b33042d49900aef6598c23ee5b1ad962c6a560ee7a47e9 eudev-3.2.12-04-x86_64.pkg.tar.lz
## 04ed3659b77c27c0564b8890defaea8b536660ffcb4036e7f9e996b41a26c7f6 libeudev-3.2.12-04-x86_64.pkg.tar.lz
2023-08-16 03:24:23 +02:00