core/libchewing/PKGBUILD

35 lines
883 B
Bash
Raw Normal View History

2013-06-20 19:20:09 +08:00
#maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
#contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/libchewing/
2010-03-14 23:48:48 +08:00
pkgname=libchewing
2014-04-24 09:07:50 +08:00
pkgver=0.4.0
pkgrel=2
2010-03-14 23:48:48 +08:00
pkgdesc="Improved Smart Chewing Library - Intelligent Chinese Phonetic Input Method"
2013-06-20 19:20:09 +08:00
arch=('x86_64')
2014-03-31 01:32:58 +08:00
url="http://chewing.im/"
2010-03-14 23:48:48 +08:00
license=("GPL")
depends=('glibc')
makedepends=('libtool' 'cmake')
2010-03-14 23:48:48 +08:00
options=('!libtool')
2014-03-31 01:32:58 +08:00
source=("https://github.com/chewing/libchewing/archive/v${pkgver}.tar.gz")
2014-04-24 09:07:50 +08:00
sha1sums=('f66c6176d8565dbf8f0026beea0cf824aa013a39')
2010-03-14 23:48:48 +08:00
build() {
2011-06-20 08:20:06 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2014-03-31 01:32:58 +08:00
./autogen.sh
[[ -d build ]] && rm -rf build ; mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
2011-06-20 08:20:06 +08:00
make
}
2014-04-24 09:07:50 +08:00
check() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
make check
2014-04-24 09:07:50 +08:00
}
2011-06-20 08:20:06 +08:00
package() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
2011-06-20 08:20:06 +08:00
make DESTDIR="${pkgdir}" install
2010-03-14 23:48:48 +08:00
}