summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9fb83e27a17d3223bfba741c28115b6b3399ea2b (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
33
34
35
36
37
38
39
_pkgname=corekeyboard
pkgname=${_pkgname}-git
pkgver=4.5.0.r2.g18e755d
pkgrel=1
pkgdesc="A x11 based virtual keyboard from the CoreApps family."
arch=('x86_64' 'aarch64')
url="https://gitlab.com/cubocore/coreapps/$_pkgname"
license=('GPL3')
depends=('qt5-base' 'libcprime-git' 'qt5-x11extras' 'libxtst' 'libx11')
makedepends=('git' 'cmake' 'ninja')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
groups=('coreapps-git')
source=("git+https://gitlab.com/cubocore/coreapps/corekeyboard.git")
md5sums=('SKIP')


pkgver() {
  cd ${_pkgname}
  git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../${_pkgname} \
    -GNinja \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib
  ninja
}

package() {
  cd build
  DESTDIR="${pkgdir}" ninja install
}