summaryrefslogtreecommitdiff
path: root/pcr/eudev/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-08-29 14:12:58 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-08-29 14:12:58 -0500
commit50ffb3759662154169c52644799fbc110dad0fab (patch)
treee184b286dcb5eb9fcc99774daba544aff4692d25 /pcr/eudev/PKGBUILD
parentac81c495bfe06857aafa76301476e2bd9f5a3ed7 (diff)
downloadabslibre-50ffb3759662154169c52644799fbc110dad0fab.tar.gz
abslibre-50ffb3759662154169c52644799fbc110dad0fab.tar.bz2
abslibre-50ffb3759662154169c52644799fbc110dad0fab.zip
eudev-3.2-4: split and rebuild
Diffstat (limited to 'pcr/eudev/PKGBUILD')
-rw-r--r--pcr/eudev/PKGBUILD64
1 files changed, 41 insertions, 23 deletions
diff --git a/pcr/eudev/PKGBUILD b/pcr/eudev/PKGBUILD
index 732112d4e..544445611 100644
--- a/pcr/eudev/PKGBUILD
+++ b/pcr/eudev/PKGBUILD
@@ -5,32 +5,31 @@
_udev_ver=220
-pkgname=eudev
+pkgbase=eudev
+pkgname=('eudev' 'libeudev')
pkgver=3.2
-pkgrel=1
-pkgdesc="The userspace dev tools (udev) forked by Gentoo"
+pkgrel=4
arch=('i686' 'x86_64' 'armv7h')
url="http://www.gentoo.org/proj/en/eudev/"
license=('GPL')
-depends=('glib2' 'kbd' 'kmod' 'hwids' 'util-linux')
-makedepends=('gobject-introspection' 'gperf' 'gtk-doc' 'intltool')
-optdepends=('eudev-systemdcompat: makes packages compiled with systemd features run'
- 'udev-openrc: udev starup scripts for openrc')
-provides=("udev=${_udev_ver}"
- "libudev=${_udev_ver}"
- 'libudev.so')
-conflicts=('libudev.so')
-backup=('etc/udev/udev.conf')
-options=(!makeflags !libtool)
+makedepends=('gobject-introspection' 'gperf' 'gtk-doc' 'intltool' 'kmod')
+options=('!libtool' '!staticlibs')
source=("$pkgname-$pkgver.tar.gz::https://github.com/gentoo/eudev/archive/v${pkgver}.tar.gz"
'initcpio_hooks'
- 'initcpio_install')
+ 'initcpio_install'
+ 'udev-hwdb.hook')
sha256sums=('37829d37f4beb7e358ca33abc1ad0907d87f917ce157777aeaeebeacae24efdc'
'892ce43218e0a458981bbce451252c8987dc398e60b8de288e7542b8f2409c13'
- '77dd1fd318b4456409aceb077f060b87944defb07cf39d29ad1968dc6f361875')
+ '77dd1fd318b4456409aceb077f060b87944defb07cf39d29ad1968dc6f361875'
+ '7432c12205ba58ecb94a417198012fc1739ae107ffd0bf5a6e22dd9bdbf69d76')
+
+prepare(){
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ sed -e 's/GROUP="dialout"/GROUP="uucp"/' -i rules/*.rules
+}
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/${pkgbase}-${pkgver}"
./autogen.sh
./configure \
--prefix=/usr \
@@ -46,16 +45,35 @@ build() {
make
}
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+package_eudev() {
+ pkgdesc="The userspace dev tools (udev) forked by Gentoo"
+ provides=("udev=${_udev_ver}")
+ depends=("libeudev" 'kbd' 'kmod' 'hwids' 'util-linux')
+ optdepends=('eudev-systemd: makes packages compiled with systemd features run'
+ 'udev-openrc: udev starup scripts for openrc')
+ backup=('etc/udev/udev.conf')
+
+
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+
make DESTDIR="${pkgdir}" install
- for i in "${pkgdir}/usr/lib/udev/rules.d/"*.rules; do
- sed -i -e 's#GROUP="dialout"#GROUP="uucp"#g;
- s#GROUP="tape"#GROUP="storage"#g;
- s#GROUP="cdrom"#GROUP="optical"#g' "${i}"
- done
+ 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')
+ optdepends=('libeudev-systemd: systemd client libraries')
+ conflicts=('libudev.so')
+ provides=("libudev=${_udev_ver}" 'libudev.so')
+
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ make -C src/libudev DESTDIR="$pkgdir" install
}