forked from PKGBUILDs/eudev
bump!
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
ef48ea0bdd
commit
f3439bb042
72
PKGBUILD
72
PKGBUILD
|
@ -3,7 +3,7 @@
|
||||||
# Contributor: Alexey D. <lq07829icatm@rambler.ru>
|
# Contributor: Alexey D. <lq07829icatm@rambler.ru>
|
||||||
# Contributor: Ivailo Monev <xakepa10@gmail.com>
|
# Contributor: Ivailo Monev <xakepa10@gmail.com>
|
||||||
|
|
||||||
_udev_ver=220
|
_udev_ver=232
|
||||||
_src_uri='http://dev.gentoo.org/~blueness/eudev'
|
_src_uri='http://dev.gentoo.org/~blueness/eudev'
|
||||||
|
|
||||||
pkgname=( 'eudev' 'libeudev' )
|
pkgname=( 'eudev' 'libeudev' )
|
||||||
|
@ -14,24 +14,35 @@ arch=('i686' 'x86_64')
|
||||||
url="https://github.com/gentoo/eudev"
|
url="https://github.com/gentoo/eudev"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
makedepends=('gobject-introspection' 'gperf' 'gtk-doc' 'intltool' 'kmod')
|
makedepends=('gobject-introspection' 'gperf' 'gtk-doc' 'intltool' 'kmod')
|
||||||
backup=('etc/udev/udev.conf')
|
options=( '!libtool' '!staticlibs')
|
||||||
options=(!makeflags !libtool)
|
|
||||||
source=("${_src_uri}/${pkgname}-${pkgver}.tar.gz"
|
source=(
|
||||||
|
"$pkgname-$pkgver.tar.gz::https://github.com/gentoo/eudev/archive/v${pkgver}.tar.gz"
|
||||||
'initcpio_hooks'
|
'initcpio_hooks'
|
||||||
'initcpio_install')
|
'initcpio_install'
|
||||||
|
'udev-hwdb.hook'
|
||||||
|
)
|
||||||
|
|
||||||
|
prepare(){
|
||||||
|
cd "${srcdir}/${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() {
|
build() {
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
|
./autogen.sh
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--with-rootprefix=/usr \
|
--with-rootprefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--libdir=/usr/lib \
|
--libdir=/usr/lib \
|
||||||
--sbindir=/usr/bin \
|
--sbindir=/usr/bin \
|
||||||
--with-html-dir=/usr/share/doc/${pkgname}-${pkgver}/html \
|
|
||||||
--disable-gudev \
|
|
||||||
--enable-introspection \
|
--enable-introspection \
|
||||||
--enable-kmod \
|
--enable-kmod \
|
||||||
|
--enable-manpages \
|
||||||
--enable-split-usr
|
--enable-split-usr
|
||||||
|
|
||||||
make
|
make
|
||||||
|
@ -49,53 +60,40 @@ package_eudev() {
|
||||||
'util-linux'
|
'util-linux'
|
||||||
'libeudev'
|
'libeudev'
|
||||||
)
|
)
|
||||||
|
|
||||||
optdepends=(
|
optdepends=(
|
||||||
'eudev-systemdcompat: makes packages compiled with systemd features run'
|
'libsystemd-standalone: to run packages built against systemd'
|
||||||
'libsystemd-standalone: same as the above, but built from upstream sources'
|
|
||||||
'upower-pm-utils: pm-utils support'
|
'upower-pm-utils: pm-utils support'
|
||||||
)
|
)
|
||||||
|
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
make DESTDIR="${pkgdir}" install
|
make DESTDIR="${pkgdir}" install
|
||||||
|
|
||||||
for i in "${pkgdir}/usr/lib/udev/rules.d/"*.rules; do
|
# initramfs hooks
|
||||||
sed -i -e 's#GROUP="dialout"#GROUP="uucp"#g;
|
install -Dm644 "$srcdir/initcpio_hooks" "$pkgdir/usr/lib/initcpio/hooks/udev"
|
||||||
s#GROUP="tape"#GROUP="storage"#g;
|
install -Dm644 "$srcdir/initcpio_install" "$pkgdir/usr/lib/initcpio/install/udev"
|
||||||
s#GROUP="cdrom"#GROUP="optical"#g' "${i}"
|
install -Dm644 "$srcdir/udev-hwdb.hook" "$pkgdir/usr/share/libalpm/hooks/udev-hwdb.hook"
|
||||||
done
|
|
||||||
|
|
||||||
install -Dm644 "${srcdir}/initcpio_hooks" "${pkgdir}/usr/lib/initcpio/hooks/udev"
|
# These go into a separate package
|
||||||
install -Dm644 "${srcdir}/initcpio_install" "${pkgdir}/usr/lib/initcpio/install/udev"
|
rm -rv "$pkgdir"/usr/lib/pkgconfig
|
||||||
|
rm -v "$pkgdir"/usr/include/libudev.h
|
||||||
# split out...
|
rm -v "$pkgdir"/usr/lib/libudev*.{so*,a}
|
||||||
mkdir -pm755 "${srcdir}/_libeudev"
|
|
||||||
cd "${srcdir}/_libeudev"
|
|
||||||
|
|
||||||
# ...libs
|
|
||||||
mkdir -pm755 usr/lib usr/lib/pkgconfig
|
|
||||||
mv "$pkgdir"/usr/lib/libudev*.{so,a}* usr/lib/
|
|
||||||
mv "$pkgdir"/usr/lib/pkgconfig/libudev.pc usr/lib/pkgconfig/libudev.pc
|
|
||||||
|
|
||||||
# ...headers
|
|
||||||
mkdir -pm755 usr/include
|
|
||||||
mv "$pkgdir"/usr/include/libudev.h usr/include
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package_libeudev() {
|
package_libeudev() {
|
||||||
pkgdesc="eudev client libraries"
|
pkgdesc="eudev client libraries"
|
||||||
depends=( 'glibc' 'glib2' )
|
depends=( 'glibc' 'glib2' )
|
||||||
|
conflicts=( 'libudev.so' )
|
||||||
provides=(
|
provides=(
|
||||||
"libudev"
|
"libudev=$_udev_ver"
|
||||||
'libudev.so'
|
|
||||||
)
|
|
||||||
conflicts=(
|
|
||||||
'libeudev'
|
|
||||||
'libudev.so'
|
'libudev.so'
|
||||||
)
|
)
|
||||||
|
|
||||||
mv "$srcdir/_libeudev"/* "$pkgdir"
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
||||||
|
make -C src/libudev DESTDIR="$pkgdir" install
|
||||||
}
|
}
|
||||||
|
|
||||||
sha1sums=('240d7b589ef1da1bb85a950f919e826239363350'
|
sha1sums=('c46eb61d12fc48429d67a899a9b2a15162042324'
|
||||||
'defa489254f38e57723a8ff70654f29e47bd448a'
|
'defa489254f38e57723a8ff70654f29e47bd448a'
|
||||||
'a6a6ee5c751fb92e2c79e0a297e4c318c8f6bb75')
|
'a6a6ee5c751fb92e2c79e0a297e4c318c8f6bb75'
|
||||||
|
'6cdf611d37604062ae4c380307421cef6fde445d')
|
||||||
|
|
12
udev-hwdb.hook
Normal file
12
udev-hwdb.hook
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[Trigger]
|
||||||
|
Type = File
|
||||||
|
Operation = Install
|
||||||
|
Operation = Upgrade
|
||||||
|
Operation = Remove
|
||||||
|
Target = usr/lib/udev/hwdb.d/*
|
||||||
|
Target = etc/udev/hwdb.d/*
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = Updating udev Hardware Database...
|
||||||
|
When = PostTransaction
|
||||||
|
Exec = /usr/bin/udevadm hwdb --update
|
Loading…
Reference in New Issue
Block a user