summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ad7d31d7fcebcf9d7d77bdb2b71427f8a6afcae (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
# Maintainer: keshavnrj

pkgname=worddle-git
pkgver=1.0.r38.3826592
pkgrel=1
pkgdesc="Wordle is a web-based word game developed by Josh Wardle. This wrapper written in Qt removes all bloat by NYT from the game."
arch=('armv6h' 'armv7h' 'arm' 'aarch64' 'i686' 'x86_64')
url="https://github.com/keshavbhatt/worddle"
license=('MIT')
depends=('qt5-base' 'qt5-webengine')
makedepends=('git' 'qt5-base')
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}")
source=("${pkgname%-git}::git+${url}")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"

  printf "%s.r%s.%s" "$(git describe --tags --abbrev=0)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${pkgname%-git}"
  qmake src
  make
}

package() {
  cd "${pkgname%-git}"
  make INSTALL_ROOT="${pkgdir}" install
}