summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a366dfd652b83e6b77a53af984ad5683d5d5f2ba (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
# Maintainer: WindustH <windusth2006@gmail.com>

pkgname=calibre-tui
pkgver=0.3.1
pkgrel=1
pkgdesc="A TUI application to search and open books in your Calibre library."
arch=('x86_64' 'aarch64')
url="https://github.com/WindustH/calibre-tui"
license=('MIT')
depends=('xdg-utils' 'sqlite')
makedepends=('rust')
# This package provides and conflicts with the -git version
provides=("$pkgname-git")
conflicts=("$pkgname-git")
source=("$pkgname::git+$url.git#tag=v$pkgver")
sha256sums=('SKIP')

build() {
  cd "$pkgname"
  # Using --locked guarantees that dependencies match Cargo.lock
  cargo build --release --locked
}

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

  install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 "preset/config.toml" "$pkgdir/usr/share/doc/$pkgname/config.toml.example"
}