summaryrefslogtreecommitdiff
path: root/community/ibus-sunpinyin/PKGBUILD
blob: c41529cece4054f51205d0e3292e8628daea26bc (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
# $Id: PKGBUILD 92623 2013-06-10 07:28:20Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=ibus-sunpinyin
_pkgname=sunpinyin
pkgver=2.0.3.20130307
_commit=64e26d9ed1f617e59ff37c2efc0be97727c799a1
pkgrel=1
pkgdesc="IBus Wrapper for sunpinyin"
arch=('i686' 'x86_64')
url="http://sunpinyin.googlecode.com"
license=('LGPL')
depends=('sunpinyin>2.0.3' 'sunpinyin-data' 'ibus')
makedepends=('git' 'scons')
source=("git://github.com/sunpinyin/sunpinyin.git#commit=$_commit")
md5sums=("SKIP")

build() {
  cd "$srcdir/$_pkgname/wrapper/ibus"
  sed -i -e "s|python|python2|" setup/ibus-setup-sunpinyin.in
  
  scons \
    --prefix=/usr
}

package() {
  cd "$srcdir/$_pkgname/wrapper/ibus"

  scons \
    --prefix=/usr \
    --install-sandbox="$pkgdir" \
    install
}