b6bcd8cd34
* daemontools and dmraid is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
# Template file for 'db'
|
|
pkgname=db
|
|
version=5.3.28
|
|
revision=8
|
|
wrksrc="db-${version}"
|
|
build_wrksrc="build_unix"
|
|
build_style=gnu-configure
|
|
configure_script="../dist/configure"
|
|
configure_args="--enable-compat185 --enable-cxx --enable-static --enable-dbm"
|
|
make_build_args="LIBSO_LIBS=-lpthread"
|
|
short_desc="Berkeley DB embedded database system"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-4-Clause"
|
|
homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.html"
|
|
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
|
|
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
|
|
|
|
post_install() {
|
|
chmod 755 ${DESTDIR}/usr/bin/*
|
|
vmkdir usr/share/doc/${pkgname}-${version}
|
|
mv ${DESTDIR}/usr/docs/* ${DESTDIR}/usr/share/doc/${pkgname}-${version}
|
|
rmdir ${DESTDIR}/usr/docs
|
|
vlicense ../LICENSE
|
|
}
|
|
|
|
db-devel_package() {
|
|
depends="libdb>=${version}_${revision} libdb-cxx>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|
|
db-doc_package() {
|
|
short_desc+=" - documentation files"
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
}
|
|
}
|
|
libdb-cxx_package() {
|
|
short_desc+=" - C++ shared libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/libdb_cxx*.so*"
|
|
}
|
|
}
|
|
libdb_package() {
|
|
short_desc+=" - C shared libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/libdb.so*"
|
|
vmove "usr/lib/libdb-*.so*"
|
|
}
|
|
}
|