forked from ports/contrib
stylua: initial commit, version 0.15.1
This commit is contained in:
parent
ae10c4fc2f
commit
1a2e297187
3
stylua/.footprint
Normal file
3
stylua/.footprint
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
drwxr-xr-x root/root usr/
|
||||||
|
drwxr-xr-x root/root usr/bin/
|
||||||
|
-rwxr-xr-x root/root usr/bin/stylua
|
5
stylua/.signature
Normal file
5
stylua/.signature
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
untrusted comment: verify with /etc/ports/contrib.pub
|
||||||
|
RWSagIOpLGJF3/PMkyDepKyofooFU5cEoFI81QPeE1wLIgzI2IO3ttYU0MalJ/XsQoS2mhanENBTm2I6fog6BzwnPKMh20xtgQc=
|
||||||
|
SHA256 (Pkgfile) = 6798c136f6af5c137c3a2390daa642fa8d893595dfdaac9be7da2dab1835b85a
|
||||||
|
SHA256 (.footprint) = 206c4ed7edd33daadb8c9716aa98945676fdbc660ad1206599341acdb764564e
|
||||||
|
SHA256 (StyLua-0.15.1.tar.gz) = 5524e431a1805b7cf43587f16736643c75a00092bf302bb1f9f73e8e5d1c5a41
|
18
stylua/Pkgfile
Normal file
18
stylua/Pkgfile
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Description: Code formatter for Lua
|
||||||
|
# URL: https://github.com/JohnnyMorganz/StyLua
|
||||||
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||||
|
# Depends on: rust
|
||||||
|
|
||||||
|
name=stylua
|
||||||
|
version=0.15.1
|
||||||
|
release=1
|
||||||
|
source=(https://github.com/JohnnyMorganz/StyLua/archive/v$version/StyLua-$version.tar.gz)
|
||||||
|
|
||||||
|
build() {
|
||||||
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
||||||
|
mkdir "$PKGMK_SOURCE_DIR/rust" || true
|
||||||
|
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
|
||||||
|
|
||||||
|
cargo build --release --manifest-path StyLua-$version/Cargo.toml
|
||||||
|
install -Dt $PKG/usr/bin StyLua-$version/target/release/$name
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user