1 2 3 4 5 6
prepare () { cd "$srcdir/$pkgname-$pkgver" cp "$srcdir/config.h" config.h find -L "$srcdir/patches" -name "*.diff" -type f -print0 | sort -z | xargs -t -0 -n 1 patch -p1 -i }