summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a2a4925eb0560a119ae1ae732e8ab385e173ebc (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: GT610 <myddz1005@163.com>

pkgname=keyviz
pkgver=2.0.0a2
pkgrel=1
pkgdesc="A free and open-source tool to visualize your keystrokes keyboard in real-time"
arch=('x86_64')
url="https://github.com/mulaRahul/keyviz"
license=('GPL')
makedepends=('flutter')
source=("${pkgname}_${pkgver}.tar.gz::https://github.com/mulaRahul/keyviz/archive/refs/tags/v${pkgver}.tar.gz")
md5sums=('4603ee4c7ab4937cc1c0f7aee25fe448')
sha256sums=('dfd42f976bba45fb3a414dc90f53f22f32fcd46176bbf28e5f383db582af2181')

build() {
  cd "${pkgname}"-"${pkgver}"
  flutter pub get
  flutter build linux
}

package() {
  mkdir -p "${pkgdir}"/usr/bin "${pkgdir}"/usr/share/applications "${pkgdir}"/usr/share/icons
  cp -r "${pkgname}"-"${pkgver}"/build/linux/x64/release/bundle/* "${pkgdir}"/usr/bin
  cp ../keyviz.desktop "${pkgdir}"/usr/share/applications
  cp ../keyviz-icon.xpm "${pkgdir}"/usr/share/icons
  chmod +x "${pkgdir}"/usr/bin/keyviz
  echo "Currently keyviz for GNU/Linux is in alpha release. It may not work properly or have some bugs. \
  For any issues about the application itself, please refer to https://github.com/mulaRahul/keyviz/issues."
}