c987560802
```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 ```
24 lines
768 B
Bash
24 lines
768 B
Bash
# Template file for 'cabal-install'
|
|
pkgname=cabal-install
|
|
version=3.2.0.0
|
|
revision=1
|
|
hostmakedepends="ghc curl tar which"
|
|
makedepends="gmp-devel libffi-devel zlib-devel"
|
|
depends="ghc"
|
|
short_desc="Command-line interface for Cabal and Hackage"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://hackage.haskell.org/package/cabal-install"
|
|
distfiles="https://hackage.haskell.org/packages/archive/${pkgname}/${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=a0555e895aaf17ca08453fde8b19af96725da8398e027aa43a49c1658a600cb0
|
|
nopie_files="/usr/bin/cabal"
|
|
nocross=yes
|
|
|
|
do_build() {
|
|
PREFIX=$PWD/build sh bootstrap.sh --jobs ${XBPS_MAKEJOBS} --user
|
|
}
|
|
do_install() {
|
|
vbin build/bin/cabal
|
|
vman build/share/man/man1/cabal.1
|
|
vlicense LICENSE
|
|
}
|