util-linux-ng: add lib{blkid,uuid}{,-devel} subpkgs.

--HG--
extra : convert_revision : 0e14278d4d2a6a8ea87ef5ae8cd875ceea3a7402
This commit is contained in:
Juan RP
2010-02-27 11:06:59 +01:00
parent 0ce3749025
commit 1bd40f7b85
17 changed files with 79 additions and 106 deletions

View File

@@ -0,0 +1,2 @@
abi_depends=">=2.15"
api_depends="${abi_depends}"

View File

@@ -0,0 +1,26 @@
# Template file for 'libblkid-devel'.
#
short_desc="libblkid development files"
long_desc="
libblkid contains a library to handle device identification
and token extraction.
This package contains files for development, headers, static libs, etc."
Add_dependency run zlib-devel
Add_dependency run libuuid-devel
Add_dependency run libblkid
do_install()
{
mkdir -p ${DESTDIR}/usr/include/blkid ${DESTDIR}/usr/share/man/man3 \
${DESTDIR}/usr/lib/pkgconfig
mv ${SRCPKGDESTDIR}/usr/include/blkid ${DESTDIR}/usr/include
mv ${SRCPKGDESTDIR}/usr/lib/libblkid.a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/libblkid.so ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig/blkid.pc \
${DESTDIR}/usr/lib/pkgconfig
mv ${SRCPKGDESTDIR}/usr/share/man/man3/libblkid.3 \
${DESTDIR}/usr/share/man/man3
}

View File

@@ -0,0 +1,16 @@
# Template file for 'libblkid'.
#
short_desc="Library to handle device identification"
long_desc="
The libblkid package contains a library to handle device identification
and token extraction."
Add_dependency run glibc
Add_dependency run zlib
Add_dependency run libuuid
do_install()
{
mkdir -p ${DESTDIR}/lib
mv ${SRCPKGDESTDIR}/lib/libblkid.so.* ${DESTDIR}/lib
}

View File

@@ -0,0 +1,18 @@
# Template file for 'libuuid-devel'.
#
short_desc="UUID library development files"
long_desc="
libuuid generates and parses 128-bit universally unique id's (UUIDs).
See RFC 4122 for more information.
This packages contains files for development, static files, headers, etc."
Add_dependency run glibc-devel
do_install()
{
mkdir -p ${DESTDIR}/usr/share/man
mv ${SRCPKGDESTDIR}/usr/lib ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man
}

View File

@@ -0,0 +1,14 @@
# Template file for 'libuuid'.
#
short_desc="UUID library"
long_desc="
libuuid generates and parses 128-bit universally unique id's (UUIDs).
See RFC 4122 for more information."
Add_dependency run glibc
do_install()
{
mkdir -p ${DESTDIR}/lib
mv ${SRCPKGDESTDIR}/lib/libuuid.so.* ${DESTDIR}/lib
}

View File

@@ -13,6 +13,7 @@ long_desc="
them are utilities for handling file systems, consoles, partitions,
and messages."
subpackages="libblkid libblkid-devel libuuid libuuid-devel"
# Required by /var/lib/hwclock
keep_empty_dirs=yes
@@ -25,8 +26,6 @@ Add_dependency run ncursesw
Add_dependency build pkg-config
Add_dependency build gettext
Add_dependency build zlib-devel
Add_dependency build libuuid-devel
Add_dependency build libblkid-devel
Add_dependency build ncursesw-devel
post_configure()
@@ -39,10 +38,6 @@ post_configure()
post_install()
{
# Remove stuff provided by libuuid and libblkid.
rm -rf ${DESTDIR}/usr/lib ${DESTDIR}/usr/include \
${DESTDIR}/lib ${DESTDIR}/usr/share/man/man3
# Move logger to /bin.
install -d -m 755 ${DESTDIR}/bin
mv ${DESTDIR}/usr/bin/logger ${DESTDIR}/bin