summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 46fce1c4c2369ab57bc8a891c674e1a4a4f182cf (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
# Maintainer: Thenujan Sandramohan <sthenujan2002@gmail.com>
pkgname=fcitx5-table-bamini
pkgver=1
pkgrel=1
epoch=
pkgdesc="Bamini tamil language keymap using table"
arch=('any')
url="https://github.com/Thenujan-0/bamini"
license=('GPL')
source=("bamini::git+https://github.com/Thenujan-0/bamini.git")
sha256sums=('SKIP')
depends=('fcitx5' 'fcitx5-table-other')

package() {
    install -d "$pkgdir/usr/share/fcitx5/inputmethod/"
    install -m644 "$srcdir/bamini/tamil-bamini.conf" "$pkgdir/usr/share/fcitx5/inputmethod/tamil-bamini.conf"
    install -d "$pkgdir/usr/share/fcitx5/table/"
    install -m644 "$srcdir/bamini/tamil-bamini.main.dict" "$pkgdir/usr/share/fcitx5/table/tamil-bamini.main.dict"

    mkdir -p "$pkgdir/etc/profile.d"

    if [ "$GTK_IM_MODULE" = "" ];then
        echo "export GTK_IM_MODULE=fcitx" >> "$pkgdir/etc/profile.d/$pkgname.sh"
    else
        echo "GTK_IM_MODULE is already set"
    fi



    if [ "$QT_IM_MODULE" = "" ];then
        echo "export QT_IM_MODULE=fcitx" >> "$pkgdir/etc/profile.d/$pkgname.sh"
    else
        echo "QT_IM_MODULE is already set"
    fi




    if [ "$XMODIFIERS" = "" ];then
        echo "export XMODIFIERS=@im=fcitx">> "$pkgdir/etc/profile.d/$pkgname.sh"
    else
        echo "XMODIFIERS is already set"
    fi
}