Convert all xbps-base-chroot pkgs to subpkgs.
Also introduce "libs.depends", that adds a rundep of a package with a proper version. This is to avoid modifying all dependent packages if there's an API/ABI change. --HG-- extra : convert_revision : a46b11b8e9187bdb2bfc954ad5ff40ecd9c0fe31
This commit is contained in:
19
templates/findutils/base.template
Normal file
19
templates/findutils/base.template
Normal file
@@ -0,0 +1,19 @@
|
||||
# Template file for 'findutils-base'.
|
||||
#
|
||||
short_desc="${short_desc} (base files)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains the ${sourcepkg} base files."
|
||||
|
||||
. ${XBPS_TEMPLATESDIR}/glibc/libs.depends
|
||||
|
||||
do_install()
|
||||
{
|
||||
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
|
||||
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
|
||||
|
||||
mkdir -p ${destdir}/usr
|
||||
mv ${origdir}/usr/bin ${destdir}/usr
|
||||
mv ${origdir}/usr/libexec ${destdir}/usr
|
||||
mv ${origdir}/var ${destdir}
|
||||
}
|
19
templates/findutils/docs.template
Normal file
19
templates/findutils/docs.template
Normal file
@@ -0,0 +1,19 @@
|
||||
# Template file for 'findutils-docs'.
|
||||
#
|
||||
short_desc="${short_desc} (documentation)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains the ${sourcepkg} documentation: manual pages
|
||||
and info files."
|
||||
run_depends=
|
||||
noarch=yes
|
||||
|
||||
do_install()
|
||||
{
|
||||
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
|
||||
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
|
||||
|
||||
mkdir -p ${destdir}/usr/share
|
||||
mv ${origdir}/usr/share/info ${destdir}/usr/share
|
||||
mv ${origdir}/usr/share/man ${destdir}/usr/share
|
||||
}
|
17
templates/findutils/locale.template
Normal file
17
templates/findutils/locale.template
Normal file
@@ -0,0 +1,17 @@
|
||||
# Template file for 'findutils-locale'.
|
||||
#
|
||||
short_desc="${short_desc} (locales)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains the ${sourcepkg} locale files, for non US users."
|
||||
run_depends=
|
||||
noarch=yes
|
||||
|
||||
do_install()
|
||||
{
|
||||
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
|
||||
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
|
||||
|
||||
mkdir -p ${destdir}/usr/share
|
||||
mv ${origdir}/usr/share/locale ${destdir}/usr/share
|
||||
}
|
@@ -1,5 +1,6 @@
|
||||
# Template file for 'findutils'
|
||||
pkgname=findutils
|
||||
sourcepkg=findutils
|
||||
version=4.4.0
|
||||
distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz"
|
||||
build_style=gnu_configure
|
||||
@@ -16,4 +17,4 @@ long_desc="
|
||||
locating capabilities to other commands."
|
||||
|
||||
base_chroot=yes
|
||||
run_depends="glibc-2.8"
|
||||
subpackages="base docs locale"
|
||||
|
Reference in New Issue
Block a user