blob: cfc27b54d93470cdfd5a7071afced835acd6bcc2 (
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
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Ahmad Hasan Mubashshir <ahmubashshir@gmail.com>
# pkg: git
pkgname="openbangla-keyboard-git"
pkgver=2.0.0.r12.ga6ca6a0
pkgrel=1
pkgdesc="An OpenSource, Unicode compliant Bengali Input Method"
arch=('x86_64')
url="https://openbangla.github.io"
license=('GPL3')
provides=( 'openbangla-keyboard' )
conflicts=( 'openbangla-keyboard' )
depends=('ibus' 'qt5-base')
makedepends=('cmake' 'rust' 'git')
optdepends=('ttf-indic-otf: fonts for Bangla and other Indic scripts'
'ttf-freebanglafont: miscellaneous fonts for Bangla script')
install="${pkgname%*-git}.install"
source=(
"${pkgname%*-git}::git+https://github.com/OpenBangla/OpenBangla-Keyboard"
"riti::git+https://github.com/OpenBangla/riti"
)
sha256sums=('SKIP'
'SKIP')
pkgver()
{
cd "$srcdir/${pkgname%*-git}"
(
set -o pipefail
git describe --tags --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd "$srcdir/${pkgname%*-git}"
git submodule init
git config submodule."src/engine/riti".url $srcdir/riti
git submodule update
}
build() {
cd "$srcdir/${pkgname%*-git}"
if [[ -d build ]]; then rm -rf build; fi
mkdir build && cd build
cmake ..
make
}
package() {
cd "$srcdir/${pkgname%*-git}"
make -C build DESTDIR="$pkgdir" install
}
|