diff options
Diffstat (limited to 'community/fcitx-libpinyin')
-rw-r--r-- | community/fcitx-libpinyin/PKGBUILD | 34 | ||||
-rw-r--r-- | community/fcitx-libpinyin/fcitx-libpinyin.install | 11 |
2 files changed, 45 insertions, 0 deletions
diff --git a/community/fcitx-libpinyin/PKGBUILD b/community/fcitx-libpinyin/PKGBUILD new file mode 100644 index 000000000..3bf6506ee --- /dev/null +++ b/community/fcitx-libpinyin/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan <felixonmars@gmail.com> +# Contributor: poplarch <poplarch@gmail.com> + +pkgname=fcitx-libpinyin +pkgver=0.2.1 +pkgrel=1 +pkgdesc="Libpinyin Wrapper for Fcitx." +arch=('i686' 'x86_64') +url="https://github.com/fcitx/fcitx-libpinyin" +license=('GPL') +depends=('fcitx>=4.2.0' 'libpinyin>=0.3.0') +makedepends=('cmake' 'intltool' 'wget') +provides=('fcitx-libpinyin') +source=("http://fcitx.googlecode.com/files/${pkgname}-${pkgver}.tar.xz") +install='fcitx-libpinyin.install' + +build() { + cd "$srcdir"/${pkgname}-${pkgver} + + rm -rf build + mkdir build + cd build + + msg "Starting make..." + + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. + make +} + +package() { + cd "$srcdir"/${pkgname}-${pkgver}/build + make DESTDIR="${pkgdir}" install +} +md5sums=('9ff621f6f16ab426ff01652b1ffc06a7') diff --git a/community/fcitx-libpinyin/fcitx-libpinyin.install b/community/fcitx-libpinyin/fcitx-libpinyin.install new file mode 100644 index 000000000..c0797237a --- /dev/null +++ b/community/fcitx-libpinyin/fcitx-libpinyin.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |