From 41f4b6dc69c48118c0387ba457171573d1dde2db Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 31 Oct 2021 21:40:08 +0300 Subject: Publish flowy --- flowy/PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 flowy/PKGBUILD (limited to 'flowy/PKGBUILD') diff --git a/flowy/PKGBUILD b/flowy/PKGBUILD new file mode 100644 index 0000000..de48302 --- /dev/null +++ b/flowy/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Yigit Sever + +pkgname=flowy +pkgver=0.4.0 +pkgrel=1 +pkgdesc="A lean, privacy-preserving dynamic wallpaper changer written in Rust" +arch=('x86_64') +url="https://github.com/vineetred/flowy" +license=('GPL') +makedepends=('cargo') +conflicts=("${pkgname}-git") +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") +sha256sums=('a0c4b98140df25f4c0a6d129dd9f5394c930c304c93527b5a7c664d649b9d677') + +prepare() { + cd "$pkgname-$pkgver" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +package() { + cd "$pkgname-$pkgver" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" +} -- cgit v1.2.3-70-g09d2