PKGBUILD 713 Bytes
Newer Older
Xuetian Weng's avatar
Xuetian Weng committed
1
pkgname=fcitx-libpinyin
2
pkgver=0.5.0
Jeff Huang's avatar
Jeff Huang committed
3
pkgrel=1
Xuetian Weng's avatar
Xuetian Weng committed
4
pkgdesc="Fcitx Wrapper for libpinyin."
gnastyle's avatar
gnastyle committed
5 6
arch=('x86_64')
url="https://fcitx-im.org/wiki/Fcitx"
Xuetian Weng's avatar
Xuetian Weng committed
7
license=('GPL')
8
depends=('fcitx>=4.2.8' 'libpinyin' 'qt5-webengine' 'fcitx-qt5' 'glib2' 'dbus')
Jeff Huang's avatar
Jeff Huang committed
9 10
makedepends=('cmake' 'intltool' 'wget')
source=("https://download.fcitx-im.org/${pkgname}/${pkgname}-${pkgver}_dict.tar.xz")
11
sha256sums=('97fbe01a0be618de226f483a47ed236a473713465c535b17f705f3d7112576fe')
Xuetian Weng's avatar
Xuetian Weng committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

build(){
    cd "$srcdir/${pkgname}-${pkgver}"
    rm -rf build
    mkdir build
    cd build
    
    cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
    make
}

package ()
{
    cd "$srcdir/${pkgname}-${pkgver}/build"
    make DESTDIR=${pkgdir} install
}