From d676665820360f50d70c7cf386bcaa6afbd70a45 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 19 Mar 2009 01:35:38 +0100 Subject: [PATCH] libXau: converted to subpkgs. --HG-- extra : convert_revision : 6cec48511c92a947a8bfd3b3f3a7b284fa15533d --- templates/libXau-devel | 1 + templates/libXau/devel.template | 20 ++++++++++++++++++++ templates/libXau/template | 2 ++ 3 files changed, 23 insertions(+) create mode 120000 templates/libXau-devel create mode 100644 templates/libXau/devel.template diff --git a/templates/libXau-devel b/templates/libXau-devel new file mode 120000 index 00000000000..a4c4d19cd7c --- /dev/null +++ b/templates/libXau-devel @@ -0,0 +1 @@ +libXau \ No newline at end of file diff --git a/templates/libXau/devel.template b/templates/libXau/devel.template new file mode 100644 index 00000000000..0504b5e7226 --- /dev/null +++ b/templates/libXau/devel.template @@ -0,0 +1,20 @@ +# Template file for 'libXau-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libXau + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mkdir -p ${DESTDIR}/usr/share/man + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/lib*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/lib*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man + rm -rf ${SRCPKGDESTDIR}/usr/share +} diff --git a/templates/libXau/template b/templates/libXau/template index 4000a7071a7..a533b89abd4 100644 --- a/templates/libXau/template +++ b/templates/libXau/template @@ -1,5 +1,6 @@ # Template build file for 'libXau'. pkgname=libXau +sourcepkg=$pkgname version=1.0.4 distfiles="${XORG_SITE}/lib/$pkgname-$version.tar.bz2" build_style=gnu_configure @@ -10,6 +11,7 @@ long_desc=" LibXau is an authorization protocol for X from the modular X.org X11 project." +subpackages="devel" Add_dependency full glibc Add_dependency build pkg-config Add_dependency build xproto