gudev: improve dir installation and cleanup

This commit is contained in:
Jose V Beneyto 2012-11-29 15:09:50 +01:00
parent d6319ecb02
commit e86474a128
2 changed files with 12 additions and 14 deletions

View File

@ -1,6 +1,3 @@
drwxr-xr-x root/root lib/
lrwxrwxrwx root/root lib/libgudev-1.0.so.0 -> libgudev-1.0.so.0.1.1
-rwxr-xr-x root/root lib/libgudev-1.0.so.0.1.1
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/gudev-1.0/
@ -15,6 +12,8 @@ drwxr-xr-x root/root usr/include/gudev-1.0/gudev/
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libgudev-1.0.a
-rwxr-xr-x root/root usr/lib/libgudev-1.0.la
lrwxrwxrwx root/root usr/lib/libgudev-1.0.so -> ../../lib/libgudev-1.0.so.0.1.1
lrwxrwxrwx root/root usr/lib/libgudev-1.0.so -> libgudev-1.0.so.0.1.1
lrwxrwxrwx root/root usr/lib/libgudev-1.0.so.0 -> libgudev-1.0.so.0.1.1
-rwxr-xr-x root/root usr/lib/libgudev-1.0.so.0.1.1
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/gudev-1.0.pc

View File

@ -7,28 +7,27 @@
name=gudev
version=182
release=1
release=2
source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/udev-$version.tar.xz)
build() {
cd udev-$version
./configure --prefix=/usr \
--sbindir=/sbin \
--sysconfdir=/etc \
--with-rootlibdir=/lib \
--libexecdir=/lib/udev \
--libexecdir=/usr/lib \
--mandir=/usr/man \
--enable-extras \
--enable-gudev \
--disable-introspection \
--enable-static
--disable-udev_acl \
--disable-keymap \
--enable-static \
--disable-rule_generator
make
make install DESTDIR=$SRC/tmp
install -d $PKG/{lib,usr/{include,lib/pkgconfig}}
install -d -m 0755 $PKG/usr/{include,lib/pkgconfig}
mv $SRC/tmp/usr/include/gudev* $PKG/usr/include
mv $SRC/tmp/lib/libgudev* $PKG/lib
mv $SRC/tmp/usr/lib/libgudev* $PKG/usr/lib
mv $SRC/tmp/usr/lib/pkgconfig/$name-1.0.pc $PKG/usr/lib/pkgconfig
mv $SRC/tmp/usr/lib/pkgconfig/$name* $PKG/usr/lib/pkgconfig
}