summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68c97aeb273d2b4eae44b84278637fe8546ddf59 (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
# Maintainer: Ashwin Vishnu <ashwinvis+arch at pr0t0nm4il dot com>
_name=libvarnam-ibus
pkgname="${_name}-git"
pkgver=r40.79ee71e
pkgrel=1
pkgdesc="Transliteration and reverse transliteration for Indian languages"
arch=('x86_64')
url="https://www.varnamproject.com/"
license=('Custom')
makedepends=('cmake')
source=("git+https://github.com/varnamproject/libvarnam-ibus.git")
sha256sums=('SKIP')
depends=(
  'libvarnam'
  'ibus'
)
provides=()

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
}