861ac185a6
```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 ```
33 lines
796 B
Bash
33 lines
796 B
Bash
# Template file for 'lmdb'
|
|
pkgname=lmdb
|
|
version=0.9.29
|
|
revision=1
|
|
wrksrc="lmdb-LMDB_${version}"
|
|
short_desc="Lightning Memory-Mapped Database Manager"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="OLDAP-2.8"
|
|
homepage="http://symas.com/mdb/"
|
|
distfiles="https://github.com/LMDB/lmdb/archive/LMDB_${version}.tar.gz"
|
|
checksum=22054926b426c66d8f2bc22071365df6e35f3aacf19ad943bc6167d4cae3bebb
|
|
|
|
do_build() {
|
|
cd libraries/liblmdb
|
|
make ${makejobs} XCFLAGS="$CFLAGS" CC="$CC"
|
|
}
|
|
do_install() {
|
|
cd libraries/liblmdb
|
|
make DESTDIR=${DESTDIR} CC="$CC" prefix=/usr install
|
|
|
|
vlicense LICENSE
|
|
vlicense COPYRIGHT
|
|
}
|
|
|
|
lmdb-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="lmdb>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|