summaryrefslogtreecommitdiff
path: root/opt/autotiling-rs/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'opt/autotiling-rs/MAKEPKG')
-rw-r--r--opt/autotiling-rs/MAKEPKG44
1 files changed, 44 insertions, 0 deletions
diff --git a/opt/autotiling-rs/MAKEPKG b/opt/autotiling-rs/MAKEPKG
new file mode 100644
index 0000000..8e08938
--- /dev/null
+++ b/opt/autotiling-rs/MAKEPKG
@@ -0,0 +1,44 @@
+#!/bin/mkpkg
+# description: Alternates container layout (split h/v) for Sway/i3
+# url: https://github.com/ammgws/autotiling-rs
+
+name=autotiling-rs
+version=0.1.8
+release=1
+makedeps=(rust cargo-audit)
+source=(https://github.com/ammgws/$name/archive/refs/tags/v$version.tar.gz)
+renames=($name-$version.tar.gz)
+sha256sums=(
+ "8e76d1570318dd9de6d6ffb4a85d53b49060ad3f0c396922ed6a86738e5d892b"
+)
+
+patch() {
+ export CARGO_HOME="$SRC/.cargo"
+ cd $name-$version
+ cargo vendor ../vendor
+ mkdir -p .cargo
+ printf '%s\n' \
+ '[source.crates-io]' \
+ 'replace-with = "vendored-sources"' \
+ '' \
+ '[source.vendored-sources]' \
+ 'directory = "../vendor"' \
+ > .cargo/config.toml
+ cargo audit
+}
+
+build() {
+ export CARGO_HTTP_CAINFO=/etc/ssl/cert.pem
+ export RUSTFLAGS="-C target-feature=-crt-static"
+ cd $name-$version
+ cargo build --release --offline
+ install -Dm755 target/release/$name $PKG/usr/bin/$name
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh
+