summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bf2ef823c5c40d79627af9f2ca018dce3bee89f9 (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: Sup3Legacy <constantin {dot} gierczak {dot} galle (at) protonmail [dot] com>

pkgname=wordle-tui-git
pkgver=0.4.0.r37.g8108327
pkgrel=2
pkgdesc='TUI Wordle'
arch=('x86_64')
url='https://github.com/conradludgate/wordle'
license=('N.A.')
makedepends=('git' 'rust')
optdepends=()
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
source=("${pkgname%-*}::git+$url")
sha1sums=('SKIP')

pkgver() {
  cd "${pkgname%-*}"
  echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).r$(git rev-list --count HEAD).g$(git describe --always)
}

build() {
  cd "${pkgname%-*}"
  cargo build --release
}

package() {
  cd "${pkgname%-*}"
  install -Dm755 target/release/wordle "$pkgdir/usr/bin/wordle"
}