[arch-commits] Commit in stylua/repos (community-x86_64 community-x86_64/PKGBUILD)

Daniel M. Capella polyzen at gemini.archlinux.org
Wed Mar 9 03:17:11 UTC 2022


    Date: Wednesday, March 9, 2022 @ 03:17:10
  Author: polyzen
Revision: 1145634

archrelease: copy trunk to community-x86_64

Added:
  stylua/repos/community-x86_64/
  stylua/repos/community-x86_64/PKGBUILD
    (from rev 1145633, stylua/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: stylua/repos/community-x86_64/PKGBUILD (from rev 1145633, stylua/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-03-09 03:17:10 UTC (rev 1145634)
@@ -0,0 +1,38 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=StyLua
+pkgname=stylua
+pkgver=0.12.5
+pkgrel=1
+pkgdesc='Code formatter for Lua'
+arch=('x86_64')
+url=https://github.com/JohnnyMorganz/StyLua
+license=('MPL2')
+depends=('gcc-libs')
+makedepends=('rust')
+source=("$url/archive/v$pkgver/$_name-$pkgver.tar.gz")
+b2sums=('46ce79fb17570ad7507fdac8f7707ec0b22c2d6140f17dc6a1947e82c25065f12311e2c5f57679281ec2434d577c1d497c0f556cb667d218582044c9e4d51bef')
+
+prepare() {
+  cd $_name-$pkgver
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd $_name-$pkgver
+  cargo build --release --locked --offline --all-features
+}
+
+check() {
+  cd $_name-$pkgver
+  cargo test --locked --offline
+  cargo test --locked --offline --features luau
+  cargo test --locked --offline --features lua52
+}
+
+package() {
+  cd $_name-$pkgver
+  install -Dt "$pkgdir"/usr/bin target/release/$pkgname
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list