summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 28867ee3d8bc8a6d242953ac07be44b96e6011de (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
# Maintainer: Ben Aaron Goldberg <ben@benaaron.dev>

pkgname=fre
pkgver=0.3.1
pkgrel=1
pkgdesc="CLI tool for tracking your most-used directories and files"
arch=('x86_64' 'i686' 'arm' 'armv7h' 'aarch64')
url="https://github.com/camdencheek/fre"
license=('MIT')
source=("https://github.com/camdencheek/fre/archive/${pkgver}.tar.gz")
depends=('gcc-libs')
makedepends=('rust' 'cargo')
sha256sums=("22d8dddd1c634031e731ab3966d07aa01acc184b773ae1d9aa5fe5aa6c0c3858")

build() {
    tar -xf ${pkgver}.tar.gz
    cd "$srcdir/$pkgname-$pkgver"
    cargo build --release
}

check() {
    cd "$srcdir/$pkgname-$pkgver"
    cargo test
}

package() {
    install -D -m755 "$srcdir/$pkgname-$pkgver/target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
    install -D -m644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}