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:
17
templates/libarchive/base.template
Normal file
17
templates/libarchive/base.template
Normal file
@@ -0,0 +1,17 @@
|
||||
# Template file for 'libarchive-base'.
|
||||
#
|
||||
short_desc="${short_desc} (base files)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains the ${sourcepkg} base files."
|
||||
|
||||
. ${XBPS_TEMPLATESDIR}/libarchive/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
|
||||
}
|
||||
18
templates/libarchive/dev.template
Normal file
18
templates/libarchive/dev.template
Normal file
@@ -0,0 +1,18 @@
|
||||
# Template file for 'libarchive-dev'.
|
||||
#
|
||||
short_desc="${short_desc} (development files)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains files for development, headers, static libs, etc."
|
||||
|
||||
. ${XBPS_TEMPLATESDIR}/libarchive/libs.depends
|
||||
|
||||
do_install()
|
||||
{
|
||||
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
|
||||
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
|
||||
|
||||
mkdir -p ${destdir}/usr/lib
|
||||
mv ${origdir}/usr/include ${destdir}/usr
|
||||
mv ${origdir}/usr/lib/libarchive.*a ${destdir}/usr/lib
|
||||
}
|
||||
18
templates/libarchive/docs.template
Normal file
18
templates/libarchive/docs.template
Normal file
@@ -0,0 +1,18 @@
|
||||
# Template file for 'libarchive-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/man ${destdir}/usr/share
|
||||
}
|
||||
1
templates/libarchive/libs.depends
Normal file
1
templates/libarchive/libs.depends
Normal file
@@ -0,0 +1 @@
|
||||
run_depends="${run_depends} libarchive-libs-2.6.1"
|
||||
20
templates/libarchive/libs.template
Normal file
20
templates/libarchive/libs.template
Normal file
@@ -0,0 +1,20 @@
|
||||
# Template file for 'libarchive-libs'.
|
||||
#
|
||||
short_desc="${short_desc} (libraries)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains only the ${sourcepkg} shared libraries."
|
||||
|
||||
. ${XBPS_TEMPLATESDIR}/glibc/libs.depends
|
||||
. ${XBPS_TEMPLATESDIR}/zlib/libs.depends
|
||||
. ${XBPS_TEMPLATESDIR}/bzip2/libs.depends
|
||||
. ${XBPS_TEMPLATESDIR}/lzma-utils/libs.depends
|
||||
|
||||
do_install()
|
||||
{
|
||||
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
|
||||
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
|
||||
|
||||
mkdir -p ${destdir}/usr/lib
|
||||
mv ${origdir}/usr/lib/libarchive.so* ${destdir}/usr/lib
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
# Template file for 'libarchive'
|
||||
pkgname=libarchive
|
||||
sourcepkg=libarchive
|
||||
version=2.6.1
|
||||
distfiles="http://libarchive.googlecode.com/files/$pkgname-$version.tar.gz"
|
||||
build_style=gnu_configure
|
||||
configure_args=" --disable-bsdcpio --disable-bsdtar --disable-xattr
|
||||
--disable-acl"
|
||||
short_desc="Library to read/write tar, cpio, pax, zip, iso9660, etc."
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
checksum=4d0ad4e5c33aa9725c7d92a42ae605815781372db949cd9906945e6c0d85c179
|
||||
@@ -16,4 +15,4 @@ long_desc="
|
||||
|
||||
base_chroot=yes
|
||||
build_depends="gzip-1.3.12 bzip2-1.0.5 zlib-1.2.3 lzma-utils-4.32.7"
|
||||
run_depends="glibc-2.8 $build_depends"
|
||||
subpackages="base dev docs libs"
|
||||
|
||||
Reference in New Issue
Block a user