2013-02-12 17:31:38 +00:00
|
|
|
# Template file for 'libudev'
|
|
|
|
pkgname=libudev
|
2013-10-02 13:24:03 +00:00
|
|
|
version=208
|
|
|
|
revision=1
|
2013-02-12 17:31:38 +00:00
|
|
|
wrksrc="systemd-${version}"
|
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--libexecdir=/usr/lib --disable-selinux
|
|
|
|
--disable-static --disable-ima --enable-introspection=no
|
2013-09-23 07:49:05 +00:00
|
|
|
--disable-kmod --disable-blkid --disable-chkconfig --disable-backlight
|
2013-07-28 08:09:48 +00:00
|
|
|
--disable-selinux --disable-tcpwrap --disable-pam --disable-tmpfiles
|
2013-07-04 19:46:49 +00:00
|
|
|
--disable-acl --disable-xattr --disable-audit --disable-machined
|
2013-02-12 17:31:38 +00:00
|
|
|
--disable-libcryptsetup --disable-qrencode --disable-microhttpd
|
|
|
|
--disable-binfmt --disable-vconsole --disable-readahead --disable-bootchart
|
|
|
|
--disable-quotacheck --disable-randomseed --disable-hostnamed
|
|
|
|
--disable-timedated --disable-localed --disable-coredump
|
2013-03-27 08:38:23 +00:00
|
|
|
--disable-myhostname --disable-gudev --disable-keymap --without-python
|
2013-09-23 07:49:05 +00:00
|
|
|
--disable-efi --disable-polkit --with-sysvinit-path= --with-sysvrcnd-path=
|
|
|
|
--with-rc-local-script-path-start= --with-rc-local-script-path-stop="
|
2013-02-12 17:31:38 +00:00
|
|
|
short_desc="udev shared library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.freedesktop.org/wiki/Software/systemd"
|
|
|
|
license="LGPL-2.1, GPL-2, MIT"
|
2013-03-24 09:21:58 +00:00
|
|
|
distfiles="http://www.freedesktop.org/software/systemd/systemd-${version}.tar.xz"
|
2013-10-02 13:24:03 +00:00
|
|
|
checksum=aa64fa864466fd5727005c55d61c092828b94b4f857272c0b503695022146390
|
2013-05-07 07:15:47 +00:00
|
|
|
|
2013-09-13 06:32:14 +00:00
|
|
|
hostmakedepends="pkg-config intltool gperf libxslt docbook-xsl libtool"
|
2013-05-14 08:27:35 +00:00
|
|
|
makedepends="attr-devel dbus-devel>=1.6.10_2 libcap-devel liblzma-devel libgcrypt-devel"
|
2013-02-12 17:31:38 +00:00
|
|
|
|
2013-04-08 23:49:27 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-06-04 08:42:13 +00:00
|
|
|
hostmakedepends+=" libgcrypt-devel"
|
2013-02-13 08:09:46 +00:00
|
|
|
fi
|
|
|
|
|
2013-06-04 08:42:13 +00:00
|
|
|
pre_configure() {
|
2013-09-13 06:32:14 +00:00
|
|
|
libtoolize -f
|
2013-06-04 08:42:13 +00:00
|
|
|
}
|
|
|
|
|
2013-02-12 17:31:38 +00:00
|
|
|
post_install() {
|
|
|
|
# We are only interested in shlibs, headers and pc files.
|
|
|
|
rm -rf ${DESTDIR}/{etc,var}
|
|
|
|
rm -rf ${DESTDIR}/usr/{bin,sbin}
|
2013-03-27 08:38:23 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/lib/{udev,systemd,sysctl.d,tmpfiles.d}
|
2013-03-08 11:58:01 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/share/{bash*,doc,polkit-1,dbus-1}
|
2013-02-12 17:31:38 +00:00
|
|
|
}
|
2013-04-12 17:13:19 +00:00
|
|
|
|
|
|
|
libudev-devel_package() {
|
|
|
|
depends="libudev>=${version}_${revision}"
|
|
|
|
short_desc="udev shared library -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include/libudev.h
|
|
|
|
vmove usr/lib/pkgconfig/libudev.pc
|
2013-07-04 02:04:43 +00:00
|
|
|
vmove "usr/lib/libudev*.so"
|
2013-04-12 17:13:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libudev_package() {
|
|
|
|
pkg_install() {
|
2013-07-04 02:04:43 +00:00
|
|
|
vmove "usr/lib/libudev.so.*"
|
2013-04-12 17:13:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
systemd-devel_package() {
|
|
|
|
depends="systemd-libs>=${version}_${revision}"
|
|
|
|
short_desc="systemd development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-07-04 02:04:43 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 17:13:19 +00:00
|
|
|
vmove usr/share/man/man3
|
|
|
|
vmove usr/share/pkgconfig
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
systemd-libs_package() {
|
|
|
|
short_desc="systemd runtime libraries"
|
|
|
|
replaces="systemd<43_1"
|
|
|
|
pkg_install() {
|
2013-07-04 02:04:43 +00:00
|
|
|
vmove "usr/lib/libsystemd*.so.*"
|
2013-04-12 17:13:19 +00:00
|
|
|
}
|
|
|
|
}
|