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 ```
34 lines
1.2 KiB
Bash
34 lines
1.2 KiB
Bash
# Template file for 'litecoin'
|
|
pkgname=litecoin
|
|
version=0.18.1
|
|
revision=3
|
|
build_style=gnu-configure
|
|
configure_args="--with-incompatible-bdb --with-gui=qt5 --disable-static
|
|
--disable-tests --with-openssl"
|
|
hostmakedepends="automake libtool pkg-config yasm protobuf which"
|
|
makedepends="libatomic-devel zlib-devel db-devel openssl-devel boost-devel
|
|
qt5-tools-devel miniupnpc-devel protobuf-devel libevent-devel"
|
|
short_desc="Peer-to-peer Internet currency based on scrypt cryptography"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://www.litecoin.org/"
|
|
distfiles="https://github.com/litecoin-project/litecoin/archive/v${version}.tar.gz"
|
|
checksum=2d67cba11adc5890b9698ccddeb68dd3c2ff6af19bf3ed0f1c719348b914042f
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-host-tools protobuf"
|
|
configure_args+=" --with-boost=${XBPS_CROSS_BASE}"
|
|
fi
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/include
|
|
vsconf share/examples/litecoin.conf
|
|
vman doc/man/litecoind.1 litecoind.1
|
|
vlicense COPYING
|
|
vmkdir usr/share/bash-completion/completions/${pkgname}
|
|
vcopy contrib/*.bash-completion usr/share/bash-completion/completions/${pkgname}
|
|
}
|