summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2dc472025154205724ec9a316dad62c6bb36a6e8 (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
# Maintainer: Aseem Athale <athaleaseem@gmail.com>
# Contributor: Ashwin Vishnu <ashwinvis+arch at pr0t0nm4il dot com>

_name=libvarnam-ibus
pkgname="${_name}-git"
pkgver=r40.79ee71e
pkgrel=2
pkgdesc="IBus engine for libvarnam providing Indian language input method"
arch=('x86_64')
url="https://www.varnamproject.com/"
license=('Custom')
makedepends=('cmake' 'git')
source=("git+https://github.com/varnamproject/libvarnam-ibus.git")
sha256sums=('SKIP')
depends=('libvarnam' 'ibus')
provides=('libvarnam-ibus')

pkgver() {
  cd ${_name}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd ${_name}
  cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    .
  make
}

package() {
  cd ${_name}
  make DESTDIR="$pkgdir/" install
}