80 lines
2.4 KiB
Plaintext
80 lines
2.4 KiB
Plaintext
# Template file for 'libudev'
|
|
pkgname=libudev
|
|
version=207
|
|
revision=3
|
|
wrksrc="systemd-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--libexecdir=/usr/lib --disable-selinux
|
|
--disable-static --disable-ima --enable-introspection=no
|
|
--disable-kmod --disable-blkid --disable-chkconfig --disable-backlight
|
|
--disable-selinux --disable-tcpwrap --disable-pam --disable-tmpfiles
|
|
--disable-acl --disable-xattr --disable-audit --disable-machined
|
|
--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
|
|
--disable-myhostname --disable-gudev --disable-keymap --without-python
|
|
--disable-efi --disable-polkit --with-sysvinit-path= --with-sysvrcnd-path=
|
|
--with-rc-local-script-path-start= --with-rc-local-script-path-stop="
|
|
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"
|
|
distfiles="http://www.freedesktop.org/software/systemd/systemd-${version}.tar.xz"
|
|
checksum=ac1f8120315e7969063bbb0c181c8dc59509aeaf10c4266077c257a182ad5942
|
|
|
|
hostmakedepends="pkg-config intltool gperf libxslt docbook-xsl libtool"
|
|
makedepends="attr-devel dbus-devel>=1.6.10_2 libcap-devel liblzma-devel libgcrypt-devel"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" libgcrypt-devel"
|
|
fi
|
|
|
|
pre_configure() {
|
|
libtoolize -f
|
|
}
|
|
|
|
post_install() {
|
|
# We are only interested in shlibs, headers and pc files.
|
|
rm -rf ${DESTDIR}/{etc,var}
|
|
rm -rf ${DESTDIR}/usr/{bin,sbin}
|
|
rm -rf ${DESTDIR}/usr/lib/{udev,systemd,sysctl.d,tmpfiles.d}
|
|
rm -rf ${DESTDIR}/usr/share/{bash*,doc,polkit-1,dbus-1}
|
|
}
|
|
|
|
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
|
|
vmove "usr/lib/libudev*.so"
|
|
}
|
|
}
|
|
|
|
libudev_package() {
|
|
pkg_install() {
|
|
vmove "usr/lib/libudev.so.*"
|
|
}
|
|
}
|
|
|
|
systemd-devel_package() {
|
|
depends="systemd-libs>=${version}_${revision}"
|
|
short_desc="systemd development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/man/man3
|
|
vmove usr/share/pkgconfig
|
|
}
|
|
}
|
|
|
|
systemd-libs_package() {
|
|
short_desc="systemd runtime libraries"
|
|
replaces="systemd<43_1"
|
|
pkg_install() {
|
|
vmove "usr/lib/libsystemd*.so.*"
|
|
}
|
|
}
|