Date: Tuesday, February 21, 2023 @ 22:07:13 Author: wild Revision: 1403337
archrelease: copy trunk to community-x86_64 Added: dtools/repos/community-x86_64/PKGBUILD (from rev 1403336, dtools/trunk/PKGBUILD) Deleted: dtools/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 94 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 47 insertions(+), 47 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2023-02-21 22:07:06 UTC (rev 1403336) +++ PKGBUILD 2023-02-21 22:07:13 UTC (rev 1403337) @@ -1,47 +0,0 @@ -# Maintainer: Dan Printzell <w...@archlinux.org> -# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> -# Contributor: Mihails Strasunse <pub...@dicebot.lv> - -pkgname=dtools -pkgver=2.102.0 -pkgrel=1 -pkgdesc='Ancilliary tools for the D programming language' -license=('Boost') -groups=('dlang') -arch=('x86_64') -url='https://www.dlang.org' -makedepends=('dmd' 'libphobos') -provides=('ddemangle' 'dustmite' 'rdmd') -conflicts=('ddemangle' 'dustmite' 'rdmd') -depends=('curl') -source=("$pkgname-$pkgver.tar.gz::https://github.com/dlang/tools/archive/v$pkgver.tar.gz") -sha512sums=('2c0646ccc3bcfaf1954daac3b1eebbe2490bc763832165852bf02cd09c86d2c6ff9193bf007a77652a00defd71e8dade7a1f53e5cc79ea5e6384b70c607ffb00') - -build() { - DMD=dmd - - # Add $LDFLAGS to the compilation, and remove -flto - _linkflags=$(echo -ne $LDFLAGS | cut -d\" -f2 | tail -c+4 | sed -e "s/,/ -L=/g" -e "s/-flto=auto//") - - cd tools-$pkgver - # rdmd is used to build others - $DMD -od. -ofdtools-rdmd -L--build-id $_linkflags rdmd.d - - for tool in DustMite/dustmite ddemangle catdoc detab tolf dget; do - ./dtools-rdmd --compiler=$DMD --build-only -od. -ofdtools-`basename $tool` $_linkflags $tool.d - done -} - -package() { - cd tools-$pkgver - - mkdir -p "$pkgdir/usr/bin" - for tool in rdmd ddemangle catdoc detab tolf dget dustmite; do - install -m755 -t "$pkgdir/usr/bin" $pkgname-$tool - done - - cd "$pkgdir" - ln -s dtools-rdmd usr/bin/rdmd - ln -s dtools-dustmite usr/bin/dustmite - ln -s dtools-ddemangle usr/bin/ddemangle -} Copied: dtools/repos/community-x86_64/PKGBUILD (from rev 1403336, dtools/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-02-21 22:07:13 UTC (rev 1403337) @@ -0,0 +1,47 @@ +# Maintainer: Dan Printzell <w...@archlinux.org> +# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> +# Contributor: Mihails Strasunse <pub...@dicebot.lv> + +pkgname=dtools +pkgver=2.102.1 +pkgrel=1 +pkgdesc='Ancilliary tools for the D programming language' +license=('Boost') +groups=('dlang') +arch=('x86_64') +url='https://www.dlang.org' +makedepends=('dmd' 'libphobos') +provides=('ddemangle' 'dustmite' 'rdmd') +conflicts=('ddemangle' 'dustmite' 'rdmd') +depends=('curl') +source=("$pkgname-$pkgver.tar.gz::https://github.com/dlang/tools/archive/v$pkgver.tar.gz") +sha512sums=('260375f2cd80392435b14daee262509d37f858c96cee54b47a826f1f6276e665ced1b0e25811150117b4a7e09a7205bbeb4b60131d6aba4d350187a7ba00a835') + +build() { + DMD=dmd + + # Add $LDFLAGS to the compilation, and remove -flto + _linkflags=$(echo -ne $LDFLAGS | cut -d\" -f2 | tail -c+4 | sed -e "s/,/ -L=/g" -e "s/-flto=auto//") + + cd tools-$pkgver + # rdmd is used to build others + $DMD -od. -ofdtools-rdmd -L--build-id $_linkflags rdmd.d + + for tool in DustMite/dustmite ddemangle catdoc detab tolf dget; do + ./dtools-rdmd --compiler=$DMD --build-only -od. -ofdtools-`basename $tool` $_linkflags $tool.d + done +} + +package() { + cd tools-$pkgver + + mkdir -p "$pkgdir/usr/bin" + for tool in rdmd ddemangle catdoc detab tolf dget dustmite; do + install -m755 -t "$pkgdir/usr/bin" $pkgname-$tool + done + + cd "$pkgdir" + ln -s dtools-rdmd usr/bin/rdmd + ln -s dtools-dustmite usr/bin/dustmite + ln -s dtools-ddemangle usr/bin/ddemangle +}