diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-11-26 06:29:57 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-11-26 06:37:32 -0600 |
commit | 2cc3911dd4fc401266398254e3543041d3ea905d (patch) | |
tree | bf8b0f6b3d510be5b518f5f24bc99c10fa25436b /system/db | |
parent | 0f34e188657cb0c6b0c0dd0eb70536853a027ae3 (diff) | |
download | packages-2cc3911dd4fc401266398254e3543041d3ea905d.tar.gz packages-2cc3911dd4fc401266398254e3543041d3ea905d.tar.bz2 packages-2cc3911dd4fc401266398254e3543041d3ea905d.tar.xz packages-2cc3911dd4fc401266398254e3543041d3ea905d.zip |
system/db: Fix documentation packaging
* Remove extraneous documentation for language bindings we don't ship
(Java, STL, TCL).
* Split PDF documentation into its own hefty package.
Reduces size of doc package from 89 MB to 15 MB.
Ref: adelie/image#385
Diffstat (limited to 'system/db')
-rw-r--r-- | system/db/APKBUILD | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/system/db/APKBUILD b/system/db/APKBUILD index 587724143..80ef59983 100644 --- a/system/db/APKBUILD +++ b/system/db/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: pkgname=db pkgver=5.3.28 -pkgrel=2 +pkgrel=3 pkgdesc="The Berkeley DB embedded database system" url="https://www.oracle.com/technology/software/products/berkeley-db/index.html" arch="all" @@ -9,7 +9,8 @@ options="!check" # "check target not available" license="Sleepycat AND BSD-3-Clause" depends="" makedepends="" -subpackages="$pkgname-dev $pkgname-doc $pkgname-utils $pkgname-c++:cxx" +subpackages="$pkgname-dev $pkgname-doc $pkgname-utils $pkgname-c++:cxx + $pkgname-doc-pdf:pdf" source="https://download.oracle.com/berkeley-db/db-$pkgver.tar.gz atomics.patch time64.patch @@ -39,7 +40,12 @@ package() { make DESTDIR="$pkgdir" install mkdir -p "$pkgdir"/usr/share/doc - mv "$pkgdir"/usr/docs "$pkgdir"/usr/share/doc/$pkgname + cp -a "$pkgdir"/usr/docs "$pkgdir"/usr/share/doc/$pkgname + + for _extraneous in api_reference/STL api_reference/TCL csharp java\ + gsg/JAVA gsg_db_rep/JAVA gsg_txn/JAVA installation; do + rm -r "$pkgdir"/usr/share/doc/$pkgname/$_extraneous + done install -D -m644 "$builddir"/LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE @@ -58,6 +64,17 @@ cxx() { mv "$pkgdir"/usr/lib/libdb_cxx*.so "$subpkgdir"/usr/lib/ } +pdf() { + pkgdesc="$pkgdesc (PDF documentation)" + mkdir -p "$subpkgdir" + + cd "$subpkgdir"/../$pkgname-doc + for _pdf in $(find . -type f -name '*.pdf'); do + install -D -m644 "$_pdf" "$subpkgdir"/$_pdf + rm $_pdf + done +} + sha512sums="e91bbe550fc147a8be7e69ade86fdb7066453814971b2b0223f7d17712bd029a8eff5b2b6b238042ff6ec1ffa6879d44cb95c5645a922fee305c26c3eeaee090 db-5.3.28.tar.gz 8ba96cfc3e484a839b8651214f0769b35273c6235de7e53d5118eb0347f5a477f75e3336a12f1399b7748c6b6ab95aec39c8b813d7b227dd61f37ed4ab52f7d5 atomics.patch 5712bc36bd362820912bc899aff9738318b6f920e9fa71bef33c0d5c62dff7943827460b7b2194019738acfac2713954d01eab68c68ca02473f8d3f1a0950c48 time64.patch" |