Modify PKGBUILD to use LLVM

update dependencies, pkgname, conflicts, and provides
This commit is contained in:
NullBite 2023-06-01 14:01:43 -04:00
parent 26f4bf9154
commit 84a2107d79
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -2,23 +2,23 @@
# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org> # Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>
# Contributor: Mihails Strasunse <public@dicebot.lv> # Contributor: Mihails Strasunse <public@dicebot.lv>
pkgname=dtools pkgname=dtools-llvm
pkgver=2.103.1 pkgver=2.103.1
pkgrel=1 pkgrel=1
pkgdesc='Ancilliary tools for the D programming language' pkgdesc='Ancilliary tools for the D programming language'
license=('Boost') license=('Boost')
groups=('dlang') groups=('dlang')
arch=('x86_64') arch=('any')
url='https://www.dlang.org' url='https://www.dlang.org'
makedepends=('dmd' 'libphobos') makedepends=('ldc' 'liblphobos')
provides=('ddemangle' 'dustmite' 'rdmd') provides=('ddemangle' 'dustmite' 'rdmd' "dtools=$pkgver")
conflicts=('ddemangle' 'dustmite' 'rdmd') conflicts=('ddemangle' 'dustmite' 'rdmd' 'dtools')
depends=('curl') depends=('curl')
source=("$pkgname-$pkgver.tar.gz::https://github.com/dlang/tools/archive/v$pkgver.tar.gz") source=("$pkgname-$pkgver.tar.gz::https://github.com/dlang/tools/archive/v$pkgver.tar.gz")
sha512sums=('5e4d535804f64b6d0374c12bf1fb9b64859f31e9ddd260ed73aefb66cbb6fd6cc0e892ac0e91d4ecf0771e817743f2c9cc9eb7b7631437083a799f98d6131eed') sha512sums=('5e4d535804f64b6d0374c12bf1fb9b64859f31e9ddd260ed73aefb66cbb6fd6cc0e892ac0e91d4ecf0771e817743f2c9cc9eb7b7631437083a799f98d6131eed')
build() { build() {
DMD=dmd DMD=ldc
# Add $LDFLAGS to the compilation, and remove -flto # 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//") _linkflags=$(echo -ne $LDFLAGS | cut -d\" -f2 | tail -c+4 | sed -e "s/,/ -L=/g" -e "s/-flto=auto//")