```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 ```
31 lines
922 B
Bash
31 lines
922 B
Bash
# Template file for 'libiodbc'
|
|
pkgname=libiodbc
|
|
version=3.52.12
|
|
revision=2
|
|
hostmakedepends="chrpath"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --disable-gui
|
|
--disable-libodbc --includedir=/usr/include/libiodbc"
|
|
short_desc="Independent Open DataBase Connectivity"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1"
|
|
homepage="http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/"
|
|
distfiles="${SOURCEFORGE_SITE}/iodbc/${pkgname}-${version}.tar.gz"
|
|
checksum=51c5ff3a7d9a54202486cb77a3514e0e379a135beefcd5d12b96d1901f9dfb62
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/share/libiodbc
|
|
chrpath -d ${DESTDIR}/usr/bin/iodbctest{,w}
|
|
}
|
|
|
|
libiodbc-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/bin/iodbc-config
|
|
vmove usr/share/man/man1/iodbc-config.1
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|