diff options
author | Marc Soda Jr | 2023-08-22 03:18:16 -0400 |
---|---|---|
committer | Marc Soda Jr | 2023-08-22 03:18:16 -0400 |
commit | 9d5fff3a7215d41e4900aee5c7ee6f44cfbbb4f4 (patch) | |
tree | 00b3c519a4c9ac46633da06cda7b6002962687b2 | |
download | aur-9d5fff3a7215d41e4900aee5c7ee6f44cfbbb4f4.tar.gz |
Initial Commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b121209a8c82 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = tuib + pkgdesc = TUI Brightness Controller + pkgver = 0.0.1 + pkgrel = 1 + url = https://github.com/marcSoda/tuib + arch = x86_64 + arch = i686 + license = MIT + makedepends = cargo + source = git+https://github.com/marcSoda/tuib + md5sums = SKIP + +pkgname = tuib diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b9094a52e9a2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Marcantonio Soda Jr <m@soda.fm> +pkgname=tuib +pkgver=0.0.1 +pkgrel=1 +pkgdesc="TUI Brightness Controller" +arch=(x86_64 i686) +url="https://github.com/marcSoda/tuib" +license=('MIT') +groups=() +depends=() +makedepends=(cargo) +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("git+$url") +noextract=() +md5sums=('SKIP') +validpgpkeys=() + +prepare() { + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +package() { + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" +} |