eudev/PKGBUILD

102 lines
2.6 KiB
Bash
Raw Normal View History

2015-06-24 09:10:28 +00:00
# Maintainer: fbt <fbt@fleshless.org>
# Contributor: artoo <artoo@manjaro.org>
2015-06-01 13:15:16 +00:00
# Contributor: Alexey D. <lq07829icatm@rambler.ru>
# Contributor: Ivailo Monev <xakepa10@gmail.com>
2015-06-20 19:47:29 +00:00
_udev_ver=220
2015-06-01 13:15:16 +00:00
_src_uri='http://dev.gentoo.org/~blueness/eudev'
pkgname=( 'eudev' 'libeudev' )
pkgver=3.2
2015-10-13 08:28:04 +00:00
pkgrel=1
2015-06-01 13:15:16 +00:00
pkgdesc="The userspace dev tools (udev) forked by Gentoo"
arch=('i686' 'x86_64')
url="https://github.com/gentoo/eudev"
2015-06-01 13:15:16 +00:00
license=('GPL')
makedepends=('gobject-introspection' 'gperf' 'gtk-doc' 'intltool' 'kmod')
2015-06-01 13:15:16 +00:00
backup=('etc/udev/udev.conf')
options=(!makeflags !libtool)
source=("${_src_uri}/${pkgname}-${pkgver}.tar.gz"
'initcpio_hooks'
'initcpio_install')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--with-rootprefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib \
--sbindir=/usr/bin \
--with-html-dir=/usr/share/doc/${pkgname}-${pkgver}/html \
2015-06-24 09:10:28 +00:00
--disable-gudev \
2015-06-01 13:15:16 +00:00
--enable-introspection \
--enable-kmod \
--enable-split-usr
make
}
package_eudev() {
pkgdesc="The userspace dev tools (udev) forked by Gentoo"
provides=( "udev=${_udevver}" )
backup=( 'etc/udev/udev.conf' )
depends=(
'glib2'
'kbd'
'kmod'
'hwids'
'util-linux'
2015-08-08 16:43:38 +00:00
'libeudev'
2015-06-01 13:15:16 +00:00
)
optdepends=(
'eudev-systemdcompat: makes packages compiled with systemd features run'
'libsystemd-standalone: same as the above, but built from upstream sources'
'upower-pm-utils: pm-utils support'
)
cd "${srcdir}/${pkgname}-${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
install -Dm644 "${srcdir}/initcpio_hooks" "${pkgdir}/usr/lib/initcpio/hooks/udev"
install -Dm644 "${srcdir}/initcpio_install" "${pkgdir}/usr/lib/initcpio/install/udev"
# split out...
mkdir -pm755 "${srcdir}/_libeudev"
cd "${srcdir}/_libeudev"
# ...libs
2015-06-25 13:45:12 +00:00
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
2015-06-01 13:15:16 +00:00
# ...headers
mkdir -pm755 usr/include
2015-06-24 09:10:28 +00:00
mv "$pkgdir"/usr/include/libudev.h usr/include
2015-06-01 13:15:16 +00:00
}
package_libeudev() {
pkgdesc="eudev client libraries"
depends=( 'glibc' 'glib2' )
provides=(
"libudev"
2015-06-01 13:15:16 +00:00
'libudev.so'
)
conflicts=(
'libeudev'
2015-06-01 13:15:16 +00:00
'libudev.so'
)
mv "$srcdir/_libeudev"/* "$pkgdir"
}
2015-06-12 14:34:58 +00:00
sha1sums=('4463db5b584b6e2bcf617d7c1b0c3cf27a1fc13d'
2015-06-12 14:34:58 +00:00
'defa489254f38e57723a8ff70654f29e47bd448a'
'a6a6ee5c751fb92e2c79e0a297e4c318c8f6bb75')