7fc9190f0e
* gcc is kept at -Np0, because of void-cross ```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
1.2 KiB
Bash
31 lines
1.2 KiB
Bash
# Template file for 'git-annex'
|
|
pkgname=git-annex
|
|
version=8.20210330
|
|
revision=1
|
|
build_style=haskell-stack
|
|
makedepends="curl file-devel gnupg2 gnutls-devel gsasl-devel libxml2-devel
|
|
lsof rsync git"
|
|
# depends are utilities required by git-annex
|
|
depends="git rsync curl lsof gnupg2"
|
|
short_desc="Git addon for managing large files"
|
|
maintainer="Evan Deaubl <evan@deaubl.name>"
|
|
license="AGPL-3.0-or-later, MIT, BSD-2-Clause, GPL-3.0-or-later, custom:Expat, custom:MIT-twitter, GPL-2.0-only, custom:icon-license"
|
|
homepage="http://git-annex.branchable.com"
|
|
distfiles="https://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=17109144b2aadfab79fa0e193df3e0c02fd80f738a5ed6eccb0d11692bedb01d
|
|
nopie_files="/usr/bin/git-annex"
|
|
nocross=yes
|
|
|
|
# These install steps are pulled from the install target in the
|
|
# git-annex Makefile. The target can't be called directly because it is
|
|
# comingled with the Cabal build, and we're using Stackage instead
|
|
# Make sure they are in sync with each version upgrade
|
|
post_install() {
|
|
ln -sf git-annex ${DESTDIR}/usr/bin/git-annex-shell
|
|
ln -sf git-annex ${DESTDIR}/usr/bin/git-remote-tor-annex
|
|
|
|
vmkdir usr/share/man/man1
|
|
vcopy man/*.1 usr/share/man/man1
|
|
|
|
vlicense doc/license/AGPL
|
|
}
|