From d83d845189a1bcb655d9b10563058d152035448e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 26 Nov 2009 04:26:31 +0100 Subject: [PATCH] xbps-devel: add -static subpkg with static bins/lib. --HG-- extra : convert_revision : 3a916f3cc083f131410133bab05f0c25393df81c --- srcpkgs/xbps-devel-static | 1 + srcpkgs/xbps-devel/template | 1 + srcpkgs/xbps-devel/xbps-devel-static.template | 14 ++++++++++++++ 3 files changed, 16 insertions(+) create mode 120000 srcpkgs/xbps-devel-static create mode 100644 srcpkgs/xbps-devel/xbps-devel-static.template diff --git a/srcpkgs/xbps-devel-static b/srcpkgs/xbps-devel-static new file mode 120000 index 0000000000..bc58c7d706 --- /dev/null +++ b/srcpkgs/xbps-devel-static @@ -0,0 +1 @@ +xbps-devel \ No newline at end of file diff --git a/srcpkgs/xbps-devel/template b/srcpkgs/xbps-devel/template index 0247bb718c..e141c015f3 100644 --- a/srcpkgs/xbps-devel/template +++ b/srcpkgs/xbps-devel/template @@ -11,6 +11,7 @@ long_desc=" binary package manager. This packages includes code from a development branch available from https://launchpad.net/xbps" +subpackages="$pkgname-static" replaces="xbps" nofetch=yes noextract=yes diff --git a/srcpkgs/xbps-devel/xbps-devel-static.template b/srcpkgs/xbps-devel/xbps-devel-static.template new file mode 100644 index 0000000000..37139711ee --- /dev/null +++ b/srcpkgs/xbps-devel/xbps-devel-static.template @@ -0,0 +1,14 @@ +# Template file for 'bzip2-devel'. +# +short_desc="${sourcepkg} static binaries" +long_desc="${long_desc} + + This package contains the static binaries and library, that can be + used on any GNU/Linux distribution matching the architecture." + +do_install() +{ + mkdir -p ${DESTDIR}/sbin ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/sbin/*.static ${DESTDIR}/sbin + mv ${SRCPKGDESTDIR}/lib/*.a ${DESTDIR}/usr/lib +}