summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b1ec690f5f5ee66482832aa2ada0498a50371882 (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
# Maintainer: Sammy <shaughn.chan@gmail.com>
pkgname=cogsy
pkgver=0.2.2
pkgrel=1
pkgdesc='TUI-based Discogs collection tracker'
arch=('x86_64')
url="https://github.com/cartoon-raccoon/cogsy"
license=("LGPL2")
conflicts=("cogsy")
depends=('openssl' 'sqlite3' 'ncurses')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::https://github.com/cartoon-raccoon/$pkgname/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('7502e9e71e1760e0835ebcc4997b1f3cf992ce34c9fc534a7125e8c5746c1ef6')

build() {
    cd "$srcdir/$pkgname-$pkgver"

    cargo build --locked --release --target-dir target
}

package() {
    cd "$srcdir/$pkgname-$pkgver"

    install -Dm755 target/release/cogsy "${pkgdir}/usr/bin/cogsy"
}