summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ce732bc25f6ff57e8bdb507e701a84954fa7736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Elia Nitsche <nitscheelia at gmail.com>
# Contributor: Yigid BALABAN <fyb at fybx.dev> 
pkgname=ianny
pkgver=2.0.0
pkgrel=1
pkgdesc="Desktop utility that helps preventing repetitive strain injuries by periodically informing the user to take breaks."
arch=('x86_64')
url="https://github.com/zefr0x/ianny"
license=('GPL-3.0-only')
depends=(dbus glibc gcc-libs)
makedepends=(cargo meson)
provides=(ianny)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/zefr0x/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('fedc57356b037383b28454b46ac6c29fc47f256f9c83dc02328565e2b1191b67')

prepare() {
	cd "$pkgname-$pkgver"
	# prepare build environment
	arch-meson build
}

build() {
	cd "$pkgname-$pkgver"
	export RUSTUP_TOOLCHAIN=stable
	export CARGO_TARGET_DIR=target
	meson compile -C build
}

package() {
	cd "$pkgname-$pkgver"
	meson install -C build --destdir "${pkgdir}"
}