Date: Thursday, August 25, 2022 @ 13:33:21 Author: alerque Revision: 1278564
archrelease: copy trunk to community-x86_64 Added: difftastic/repos/community-x86_64/PKGBUILD (from rev 1278563, difftastic/trunk/PKGBUILD) Deleted: difftastic/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 126 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 65 insertions(+), 61 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-08-25 13:33:12 UTC (rev 1278563) +++ PKGBUILD 2022-08-25 13:33:21 UTC (rev 1278564) @@ -1,61 +0,0 @@ -# Maintainer: George Rawlinson <grawlin...@archlinux.org> -# Maintainer: Caleb Maclennan <ca...@alerque.com> -# Contributor: Wesley Moore <w...@wezm.net> - -pkgname=difftastic -pkgver=0.32.0 -_commit=f028389393d74ae5b23bc5482a1a1de9abbd8576 -pkgrel=1 -pkgdesc='An experimental diff tool that compares files based on their syntax' -arch=('x86_64') -url='https://difftastic.wilfred.me.uk' -license=('MIT') -depends=('gcc-libs') -makedepends=('git' 'rust' 'mdbook') -source=("$pkgname::git+https://github.com/Wilfred/difftastic.git#commit=$_commit") -b2sums=('SKIP') - -pkgver() { - cd "$pkgname" - - git describe --tags | sed 's/^v//' -} - -prepare() { - cd "$pkgname" - - # download dependencies - cargo fetch --locked --target "$CARCH-unknown-linux-gnu" -} - -build() { - cd "$pkgname" - export CFLAGS+=" -ffat-lto-objects" - - # binary - cargo build --frozen --release --all-features - - # documentation - cd manual - mdbook build -} - -check() { - cd "$pkgname" - - cargo test --frozen --all-features -} - -package() { - cd "$pkgname" - - # binary - install -vDm755 -t "$pkgdir/usr/bin" target/release/difft - - # documentation - install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md - cp -vr manual/book "$pkgdir/usr/share/doc/$pkgname/manual" - - # license - install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE -} Copied: difftastic/repos/community-x86_64/PKGBUILD (from rev 1278563, difftastic/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-08-25 13:33:21 UTC (rev 1278564) @@ -0,0 +1,65 @@ +# Maintainer: George Rawlinson <grawlin...@archlinux.org> +# Maintainer: Caleb Maclennan <ca...@alerque.com> +# Contributor: Daniel M. Capella <poly...@archlinux.org> +# Contributor: Wesley Moore <w...@wezm.net> + +pkgname=difftastic +pkgver=0.33.0 +_commit=026b2674d09dbc5cd279e769902387c95b6a126d +pkgrel=1 +pkgdesc='An experimental diff tool that compares files based on their syntax' +arch=('x86_64') +url='https://difftastic.wilfred.me.uk' +license=('MIT') +depends=('gcc-libs') +makedepends=('git' 'rust' 'mdbook') +source=("$pkgname::git+https://github.com/Wilfred/difftastic.git#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + +prepare() { + cd "$pkgname" + + # https://github.com/Wilfred/difftastic/issues/339 + git revert -n 003cbb21e0a425ca9fd15ea219d6a224e017562b + + # download dependencies + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$pkgname" + export CFLAGS+=" -ffat-lto-objects" + + # binary + cargo build --frozen --release --all-features + + # documentation + cd manual + mdbook build +} + +check() { + cd "$pkgname" + + cargo test --frozen --all-features +} + +package() { + cd "$pkgname" + + # binary + install -vDm755 -t "$pkgdir/usr/bin" target/release/difft + + # documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md + cp -vr manual/book "$pkgdir/usr/share/doc/$pkgname/manual" + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +}