From 637edf807611dd1671e7f23caeaf80ab7e7e3240 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Tue, 13 Jul 2021 21:18:01 -0500 Subject: [PATCH] add PKGBUILD for arch repos --- .gitignore | 1 + PKGBUILD | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 PKGBUILD diff --git a/.gitignore b/.gitignore index 75de0b8..b30a080 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target **/*.rs.bk shiet.* +/v*.tar.gz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..2a75eaa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Michael Zhang + +pkgname=leanshot +pkgver=0.5.0 +pkgrel=1 +pkgdesc='Screen capture for Linux.' +url='https://git.mzhang.io/michael/leanshot' +arch=('any') +license=('MIT') +makedepends=('python3') +depends=('rust' 'libxcb' 'xcb-util-image') +source=("https://git.mzhang.io/michael/${pkgname}/archive/v${pkgver}.tar.gz") +sha256sums=('9883649c13e61ac93b45daf29227bda959566c004fd4f65aef8139e7d6050986') + +build() { + cd "${pkgname}" + cargo build --release --locked --all-features --target-dir=target +} + +package() { + cd "${pkgname}" + install -Dm 755 target/release/${pkgname} -t ${pkgdir}/usr/bin +}