blob: 7e9bf493f480cc888492f4d85bc88c7f45084871 (
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
34
35
|
# Maintainer:
# Contributor: Mattia Borda <mattiagiovanni.borda@icloud.com>
pkgname=furtherance
pkgver=26.7.0
pkgrel=1
pkgdesc="Track your time without being tracked"
arch=('x86_64')
url="https://github.com/unobserved-io/Furtherance"
license=('GPL-3.0-or-later')
depends=('fontconfig' 'freetype2' 'glibc' 'hicolor-icon-theme' 'libgcc' 'libx11' 'libxss' 'openssl')
makedepends=('cargo')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=('dd34db4e4cbfeeb4dfa5dd1ba319aa57528a39fa59c752d4407d8d2af3b480e0')
prepare() {
cd "${pkgname^}-${pkgver}"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target host-tuple
}
build() {
cd "${pkgname^}-${pkgver}"
CFLAGS+=" -ffat-lto-objects"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
package() {
cd "${pkgname^}-${pkgver}"
install -Dm755 "target/release/${pkgname}" -t "${pkgdir}/usr/bin"
install -Dm644 assets/linux/io.unobserved.furtherance.desktop -t "${pkgdir}/usr/share/applications"
install -Dm644 assets/icon/io.unobserved.furtherance.svg -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
}
|