4b97cd2fb4
```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 ```
30 lines
861 B
Bash
30 lines
861 B
Bash
# Template file for 'sysbench'
|
|
pkgname=sysbench
|
|
version=1.0.20
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="
|
|
--with-mysql
|
|
--with-postgresql
|
|
--with-system-ck
|
|
--with-system-luajit"
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="LuaJIT-devel ck-devel libmariadbclient-devel openssl-devel
|
|
postgresql-libs-devel zlib-devel"
|
|
short_desc="Scriptable database and system performance benchmark"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/akopytov/sysbench"
|
|
distfiles="https://github.com/akopytov/sysbench/archive/${version}.tar.gz"
|
|
checksum=e8ee79b1f399b2d167e6a90de52ccc90e52408f7ade1b9b7135727efe181347f
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
export LIBS="-latomic"
|
|
fi
|
|
}
|