# Maintainer: JCWasmx86 pkgname=swift-mesonlsp pkgver=2.4 pkgrel=1 pkgdesc="A language server for meson" arch=("any") url="https://github.com/JCWasmx86/Swift-MesonLSP" license=("GPL3") makedepends=("swift-language") source=("${pkgname}-${pkgver}.tar.gz::https://github.com/JCWasmx86/Swift-MesonLSP/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('b0e093e0ac0342b19741488e5821be4a3d37eb0a1fc4a45c04a048420c49aace') prepare() { cd "Swift-MesonLSP-$pkgver" } package() { cd "Swift-MesonLSP-$pkgver" swift build -c release --static-swift-stdlib mkdir -p "${pkgdir}/usr/bin" install .build/release/Swift-MesonLSP "${pkgdir}/usr/bin" install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" }