summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3799df84c3acc5b05eedcc59fc417298de30154 (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
# Maintainer: Mahmud Ridwan <m[at]hjr265[dot]me>
pkgname=ibus-avro-git
pkgver=20150925
pkgrel=1
pkgdesc="Avro Phonetic Bangla typing for Linux"
url="http://linux.omicronlab.com"
arch=('x86_64' 'i686')
license=('MPL')
depends=('ibus' 'gjs')
makedepends=('autoconf' 'automake')
install=$pkgname.install

build() {
  cd "$srcdir"

  if [ -e $pkgname ]; then
    cd $pkgname
    git pull
    git checkout develop
  else
    git clone -b develop git://github.com/sarim/ibus-avro.git $pkgname
    cd $pkgname
  fi

  aclocal || return 1
  autoconf || return 1

  automake --add-missing
  ./configure --prefix=/usr

  make || return 1
}

package() {
  cd "$srcdir/$pkgname"

  make DESTDIR="$pkgdir" installdeb
  install -Dm644 MPL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING"

  sed -i 's|<layout>bn</layout>|<layout>us</layout>|' "$pkgdir/usr/share/ibus/component/ibus-avro.xml"

  rmdir "$pkgdir/usr/libexec"
}